tweak(snippets): yas-verbosity = 2

This commit is contained in:
Henrik Lissner 2022-07-23 18:05:56 +02:00
parent a5cc803ad4
commit 924d78443a
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -20,6 +20,10 @@
yas-deactivate-extra-mode yas-deactivate-extra-mode
yas-maybe-expand-abbrev-key-filter) yas-maybe-expand-abbrev-key-filter)
:init :init
;; Reduce default verbosity. 3 is too chatty about initializing yasnippet. 2
;; is just right (only shows errors).
(defvar yas-verbosity 2)
;; Remove default ~/.emacs.d/snippets ;; Remove default ~/.emacs.d/snippets
(defvar yas-snippet-dirs nil) (defvar yas-snippet-dirs nil)
@ -32,10 +36,6 @@
;; Allow private snippets in DOOMDIR/snippets ;; Allow private snippets in DOOMDIR/snippets
(add-to-list 'yas-snippet-dirs '+snippets-dir) (add-to-list 'yas-snippet-dirs '+snippets-dir)
;; Reduce verbosity. 3 is too chatty about initializing yasnippet. 2 is just
;; right (only shows errors).
(setq yas-verbosity (if init-file-debug 3 0))
;; default snippets library, if available ;; default snippets library, if available
(add-to-list 'load-path +snippets-dir) (add-to-list 'load-path +snippets-dir)
(require 'doom-snippets nil t) (require 'doom-snippets nil t)