From 2fe994beb61bb201e2397f7366db1c35d389f17d Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 2 Dec 2016 11:23:48 +0100 Subject: [PATCH] yasnippets: added yas/reload-all Signed-off-by: Andreas Gerler --- bba.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))) -- 2.47.3