Correct the `yasnippet' setup

This commit is contained in:
Gerard Vermeulen 2022-08-05 07:41:27 +02:00
parent 4ec491417f
commit 5f4b23340e
1 changed files with 4 additions and 3 deletions

View File

@ -3817,11 +3817,12 @@ code formatter for Python]].
#+caption: Enable =yas-global-mode=.
#+name: lst:enable-yas-global-mode
#+begin_src emacs-lisp
(when (and (ensure-package-installation 'yasnippet)
(require 'yasnippet nil 'noerror))
(when (ensure-package-installation 'yasnippet)
(custom-set-variables
;; Set `yas-alias-to-yas/prefix-p' before loading `yasnippet'.
'(yas-alias-to-yas/prefix-p nil))
(yas-global-mode +1))
(when (require 'yasnippet nil 'noerror)
(yas-global-mode +1)))
#+end_src
* [[info:emacs#Display][Display (info)]]