summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/general.el26
-rw-r--r--lisp/python-custom.el5
2 files changed, 24 insertions, 7 deletions
diff --git a/lisp/general.el b/lisp/general.el
index da3496f..c2de9b4 100644
--- a/lisp/general.el
+++ b/lisp/general.el
@@ -41,6 +41,15 @@
;; Tab mode
(global-tab-line-mode t)
+;; Disable major modes on long lines
+(global-so-long-mode 1)
+
+(use-package fast-scroll
+ :ensure t
+ :config
+ (fast-scroll-config)
+ (fast-scroll-mode 1))
+
;; Ability to fold regions
(add-hook 'javascript-mode-hook (lambda () (hs-minor-mode 1)))
(add-hook 'typescript-mode-hook (lambda () (hs-minor-mode 1)))
@@ -250,7 +259,7 @@
:config
(setq company-idle-delay 0.5
company-minimum-prefix-length 2
- company-tooltip-limit 20
+ company-tooltip-limit 10
company-backends '((company-capf company-gtags company-elisp company-css company-dabbrev))
)
)
@@ -260,7 +269,7 @@
:defer t
:init (company-quickhelp-mode 1)
:config
- (setq company-quickhelp-delay 0
+ (setq company-quickhelp-delay 0.5
)
)
@@ -355,6 +364,19 @@
(setq flycheck-check-syntax-automatically '(save mode-enable))
'(flycheck-idle-change-delay 1))
+;; Snippets
+(use-package yasnippet
+ :ensure t
+ :config
+ ;(setq yas-snippet-dirs
+ ; '("~/.emacs.d/snippets" ;; personal snippets
+ ; ))
+ (yas-global-mode 1)
+ (bind-key* (kbd "C-c y i") 'yas/insert-snippet)
+ )
+
+(use-package yasnippet-snippets
+ :ensure t)
(provide 'general)
;;; general.el ends here
diff --git a/lisp/python-custom.el b/lisp/python-custom.el
index 10c4cfc..2c602a5 100644
--- a/lisp/python-custom.el
+++ b/lisp/python-custom.el
@@ -29,10 +29,5 @@
indent)
"\n"))))
-(use-package yasnippet
- :ensure t
- :config
- (yas-global-mode 1))
-
(provide 'python-custom)
;;; python-custom.el ends here