From 25373fc6d9cb7d4d0f8737cf2ac9da9948da856e Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 27 Jan 2018 17:49:55 +0100 Subject: [PATCH] =?UTF-8?q?[Term]=20Move=20hook=20deactivating=20=E2=80=98?= =?UTF-8?q?yas-minor-mode=E2=80=99=20to=20=E2=80=98term-mode=E2=80=99=20co?= =?UTF-8?q?nfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index 646b764..5acdf32 100644 --- a/init.el +++ b/init.el @@ -1051,7 +1051,9 @@ are assumed to be of the form *.crt." ;; called, as it resets the escape character to C-x. (defadvice ansi-term (after ansi-term-set-keys activate) (unbind-key "C-x C-j" term-raw-map) - (unbind-key "C-x g" term-raw-map)))) + (unbind-key "C-x g" term-raw-map)) + + (add-hook 'term-mode-hook (lambda () (yas-minor-mode -1))))) ;; http://endlessparentheses.com/ansi-colors-in-the-compilation-buffer-output.html (defun endless/colorize-compilation () @@ -1402,10 +1404,6 @@ are assumed to be of the form *.crt." (use-package yasnippet :commands (yas-minor-mode-on yas-minor-mode) - :diminish yas-minor-mode - :config (progn - (add-hook 'term-mode-hook (lambda () (yas-minor-mode -1))) - (yas-reload-all))) ;; * End