]> git.donarmstrong.com Git - lib.git/commitdiff
remove tab for ya snippet globally
authorDon Armstrong <don@donarmstrong.com>
Sat, 29 Apr 2017 17:06:53 +0000 (10:06 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 29 Apr 2017 17:18:11 +0000 (10:18 -0700)
emacs_el/configuration/don-configuration.org

index aa346be6dc5ca5e5c8b7ac1d736a974ca1bac259..6af4b0c897ff15ac30a13b463fdd722ddabee3e7 100644 (file)
@@ -233,12 +233,16 @@ value, scrolling continues until there is no more output.
 
 *** Yasnippet
 #+BEGIN_SRC emacs-lisp
-(use-package yasnippet
-  :ensure t
-  :diminish yas-minor-mode
-  :config (progn
-            (yas-global-mode)
-            (setq yas-verbosity 1)))
+  (use-package yasnippet
+    :ensure t
+    :diminish yas-minor-mode
+    :config (progn
+              (yas-global-mode)
+              (setq yas-verbosity 1)
+              (define-key yas-minor-mode-map (kbd "<tab>") nil)
+              (define-key yas-minor-mode-map (kbd "TAB") nil)
+              (define-key yas-minor-mode-map (kbd "<backtab>") 'yas-expand)
+              ))
 #+END_SRC
 
 ** Helm Flx