This commit is contained in:
Zelong Kuang
2026-03-22 23:57:48 +11:00
parent fcb5f35aad
commit 3687116fe6
14 changed files with 341 additions and 82 deletions

View File

@@ -19,7 +19,7 @@
;; Snippets trigger inside a word
(setq yas-key-syntaxes (list #'yas-longest-key-from-whitespace "w_.()" "w_." "w_" "w"))
;; Function that tries to autoexpand YaSnippets
;; The double quoting is NOT a typo!
(defun my/yas-try-expanding-auto-snippets ()
@@ -27,4 +27,9 @@
(let ((yas-buffer-local-condition ''(require-snippet-condition . auto)))
(yas-expand)))))
;; Collection of yasnippet snippets
(use-package yasnippet-snippets)
(provide 'init-snippet)