summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-04-23 21:53:36 -0400
committerKyle Meyer <kyle@kyleam.com>2014-04-23 21:53:36 -0400
commit6f491087feedfe0d711fd4c5cec52592ac082296 (patch)
tree98b19cc2c479594cd8cad514cf8d4306771f2261 /lisp
parent5beee2b8c05fef63021a2e947c336ffb2abe1cf2 (diff)
downloademacs.d-6f491087feedfe0d711fd4c5cec52592ac082296.tar.gz
Switch yas trigger key and use globally
At some point, I was having issues with yas and Org mode conflicts, so I only enabled yas in LaTeX and programming mode buffers. I'm enabling it globally again and moving the expand trigger to a key chord.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-yas.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/init-yas.el b/lisp/init-yas.el
index 05cfba8..6baebea 100644
--- a/lisp/init-yas.el
+++ b/lisp/init-yas.el
@@ -1,10 +1,13 @@
(require-package 'yasnippet)
(require 'yasnippet)
-(yas-reload-all)
-(add-hook 'prog-mode-hook 'yas-minor-mode)
-(add-hook 'LaTeX-mode-hook 'yas-minor-mode)
+(yas-global-mode 1)
+
+(define-key yas-minor-mode-map (kbd "<tab>") nil)
+(define-key yas-minor-mode-map (kbd "TAB") nil)
+
+(key-chord-define-global ";e" 'yas-expand)
(diminish 'yas-minor-mode)