summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)