add yasnippet

This commit is contained in:
zedhugh committed 2022-10-21 00:39:56 +08:00
1 parent 059a10ca7b
commit 8910a22082
4 files changed
+20

No files matched your search

+12
View File
@@ -19,4 +19,16 @@
"朗道汉英字典5.0")))
(require 'yasnippet)
(require 'yasnippet-snippets)
(defun fix-lisp-comment-snippets ()
"Fix strange behavior about comment snippets in lisp."
(setq-local comment-start ";;"))
(add-hook 'emacs-lisp-mode-hook #'fix-lisp-comment-snippets)
(add-hook 'prog-mode-hook #'yas-minor-mode)
(provide 'init-tools)