]> git.donarmstrong.com Git - lib.git/commitdiff
add auto yasnippet and snippet directories
authorDon Armstrong <don@donarmstrong.com>
Tue, 5 Dec 2017 01:03:45 +0000 (17:03 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 5 Dec 2017 01:03:45 +0000 (17:03 -0800)
emacs_el/configuration/don-configuration.org

index 17e03cf873387b2791ad4eb9ceb2409be8943773..4eb1ac47bf490fcfb0ebd8f23b2353f985a68dd0 100644 (file)
@@ -253,7 +253,6 @@ value, scrolling continues until there is no more output.
 #+END_SRC
 
 ** Snippets
-
 *** Yasnippet
 #+BEGIN_SRC emacs-lisp
   (use-package yasnippet
@@ -265,9 +264,21 @@ value, scrolling continues until there is no more output.
               (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)
-              ))
+              (setq yas-snippet-dirs '("~/lib/emacs_el/snippets/"
+                                       "~/lib/emacs_el/yasnippet-snippets/snippets/"))
+              (add-to-list 'hippie-expand-try-functions-list
+                               'yas-hippie-try-expand)
+              )
+    )
+#+END_SRC
+*** Auto-YASnippet
+#+BEGIN_SRC emacs-lisp
+  (use-package auto-yasnippet
+    :bind (("H-w" . aya-create)
+           ("H-y" . aya-expand)
+           )
+    )
 #+END_SRC
-
 ** Helm Flx
 
 [[https://github.com/PythonNut/helm-flx][helm-flx]] implements intelligent helm fuzzy sorting, provided by [[https://github.com/lewang/flx][flx]].