]> code.delx.au - dotemacs/commitdiff
only enable yasnippet in prog-mode
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 28 Jul 2016 11:57:22 +0000 (21:57 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 28 Jul 2016 13:43:13 +0000 (23:43 +1000)
lisp/my-minor-modes.el

index 29bdf73dbc93738555e076d8e2eed7f64acfcf7f..3368f22851d506c44d7efad8d7434633a5642755 100644 (file)
@@ -31,7 +31,7 @@
 
 (require 'yasnippet)
 (setq yas-snippet-dirs '("~/.emacs.d/snippets"))
-(yas-global-mode 1)
+(add-hook 'prog-mode-hook #'yas-minor-mode)
 (add-hook 'python-mode-hook
           (lambda () (set (make-local-variable 'yas-indent-line) 'fixed)))