From ba8d2653f01d6b7f5949998e59f6b490e56c3737 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 11 Nov 2017 11:53:25 +0100 Subject: [PATCH] =?UTF-8?q?[Init]=20Move=20misplaced=20=E2=80=98add-hook?= =?UTF-8?q?=E2=80=99=20call=20into=20=E2=80=98db/run-init=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index bcb0a80..27bd1af 100644 --- a/init.el +++ b/init.el @@ -132,6 +132,7 @@ (add-hook 'prog-mode-hook #'electric-indent-local-mode)) (add-hook 'lisp-mode-hook #'lispy-mode) (add-hook 'text-mode-hook #'turn-on-flyspell) + (add-hook 'text-mode-hook #'yas-minor-mode-on) ;; Hydras @@ -1332,7 +1333,6 @@ Certificates are assumed to be of the form *.crt." (use-package yasnippet :commands (yas-minor-mode-on yas-minor-mode) :diminish yas-minor-mode - :init (add-hook 'text-mode-hook #'yas-minor-mode-on) :config (progn (add-hook 'term-mode-hook (lambda () (yas-minor-mode -1))) (yas-reload-all)))