[Term] Move hook deactivating ‘yas-minor-mode’ to ‘term-mode’ config
This commit is contained in:
parent
ddfd9828f5
commit
25373fc6d9
8
init.el
8
init.el
|
@ -1051,7 +1051,9 @@ are assumed to be of the form *.crt."
|
||||||
;; called, as it resets the escape character to C-x.
|
;; called, as it resets the escape character to C-x.
|
||||||
(defadvice ansi-term (after ansi-term-set-keys activate)
|
(defadvice ansi-term (after ansi-term-set-keys activate)
|
||||||
(unbind-key "C-x C-j" term-raw-map)
|
(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
|
;; http://endlessparentheses.com/ansi-colors-in-the-compilation-buffer-output.html
|
||||||
(defun endless/colorize-compilation ()
|
(defun endless/colorize-compilation ()
|
||||||
|
@ -1402,10 +1404,6 @@ are assumed to be of the form *.crt."
|
||||||
|
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
:commands (yas-minor-mode-on yas-minor-mode)
|
: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
|
;; * End
|
||||||
|
|
Loading…
Reference in New Issue