]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
yasnippets: added yas/reload-all
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 2 Dec 2016 10:23:48 +0000 (11:23 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 2 Dec 2016 10:23:48 +0000 (11:23 +0100)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index 2943fc5a10e417f9a905277ec4013e96ffa28ba9..2e432ef18e61d65b3692dc51d86f41795ad39dd3 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -455,16 +455,17 @@ snippets for =aws cli= are awesome!
 =ha-autoinsert-yas-expand= copied from Howard Abrams.
 #+BEGIN_SRC emacs-lisp
   (add-to-list 'load-path
-               "~/.emacs.d/elpa/yasnippet-20161110.1226")
+              "~/.emacs.d/elpa/yasnippet-20161110.1226")
   (require 'yasnippet)
   (setq yas-snippet-dirs '("~/.emacs.d/snippets"))
+  (yas/reload-all)
   (yas-global-mode 1)
   (setq yas-indent-line nil)
   (auto-insert-mode 1)
   (setq auto-insert-directory "~/.emacs.d/templates")
   (define-key global-map "\C-cy" 'yas-insert-snippet)
     (if (>= emacs-major-version 24)
-        (add-to-list 'yas-prompt-functions 'yas-shk-helm-prompt))
+       (add-to-list 'yas-prompt-functions 'yas-shk-helm-prompt))
   (defun ha-autoinsert-yas-expand()
     "Replace text in yasnippet template."
     (yas-expand-snippet (buffer-string) (point-min) (point-max)))