From: Andreas Gerler Date: Fri, 2 Dec 2016 10:23:48 +0000 (+0100) Subject: yasnippets: added yas/reload-all X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=2fe994beb61bb201e2397f7366db1c35d389f17d;p=emacsconfig.git yasnippets: added yas/reload-all Signed-off-by: Andreas Gerler --- diff --git a/bba.org b/bba.org index 2943fc5a..2e432ef1 100644 --- 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)))