Update
This commit is contained in:
@@ -44,31 +44,6 @@
|
||||
hungry-delete-except-modes
|
||||
'(help-mode minibuffer-mode minibuffer-inactive-mode calc-mode)))
|
||||
|
||||
;; Yasnippet settings
|
||||
(use-package yasnippet
|
||||
:diminish
|
||||
:ensure t
|
||||
:hook (elpaca-after-init . yas-global-mode)
|
||||
:hook ((LaTeX-mode . yas-minor-mode)
|
||||
(post-self-insert . my/yas-try-expanding-auto-snippets))
|
||||
:config
|
||||
(use-package warnings
|
||||
:ensure nil
|
||||
:config
|
||||
(cl-pushnew '(yasnippet backquote-change)
|
||||
warning-suppress-types
|
||||
:test 'equal))
|
||||
|
||||
(setq yas-triggers-in-field t)
|
||||
(setq yas-key-syntaxes '("w" "w_" "w_." "^ " yas-try-key-from-whitespace))
|
||||
|
||||
;; Function that tries to autoexpand YaSnippets
|
||||
;; The double quoting is NOT a typo!
|
||||
(defun my/yas-try-expanding-auto-snippets ()
|
||||
(when (and (boundp 'yas-minor-mode) yas-minor-mode)
|
||||
(let ((yas-buffer-local-condition ''(require-snippet-condition . auto)))
|
||||
(yas-expand)))))
|
||||
|
||||
(use-package abbrev
|
||||
:diminish
|
||||
:ensure nil
|
||||
|
||||
Reference in New Issue
Block a user