Fix yasnippet variables, they need to be set in :init

This commit is contained in:
Riyyi
2021-04-01 01:32:40 +02:00
parent 41f614699b
commit bce32d3ddc
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -634,9 +634,10 @@ Language Server Protocol.
#+BEGIN_SRC emacs-lisp
(use-package yasnippet
:defer t
:config
:init
(setq yas-snippet-dirs (list (concat dot-emacs-dir "/snippets")))
(setq yas-prompt-functions '(yas-completing-prompt))
:config
(yas-global-mode))
(use-package yasnippet-snippets
+2 -2
View File
@@ -3,8 +3,8 @@
# key: grd
# --
#ifndef ${1:GUARD}_H
#define ${1:$(yas-c++-class-name yas-text)}_H
#define $1_H
$0
#endif // ${1:$(yas-c++-class-name yas-text)}_H
#endif // $1_H