Fix the behavior of <tab> in term-mode buffers due to yasnippet

Resolves #399
This commit is contained in:
PythonNut 2015-01-22 20:47:52 -08:00 committed by syl20bnr
parent c0a69d05cb
commit 3127fff909

View file

@ -2096,7 +2096,14 @@ which require an initialization must be listed explicitly in the list.")
(setq yas-snippet-dirs yas-dir)
(yas-global-mode 1)))))
(add-to-hooks 'spacemacs/load-yasnippet '(prog-mode-hook
org-mode-hook)))
org-mode-hook))
(defun spacemacs/force-yasnippet-off ()
(yas-minor-mode -1)
(setq yas-dont-activate t))
(add-to-hooks 'spacemacs/force-yasnippet-off '(term-mode-hook
shell-mode-hook)))
:config
(progn
(spacemacs|diminish yas-minor-mode "" " Y")