add yasnippet
This commit is contained in:
4 files changed
+20
No files matched your search
@@ -58,3 +58,9 @@
|
||||
[submodule "site-lisp/sdcv"]
|
||||
path = site-lisp/sdcv
|
||||
url = https://github.com/manateelazycat/sdcv.git
|
||||
[submodule "site-lisp/yasnippet"]
|
||||
path = site-lisp/yasnippet
|
||||
url = https://github.com/joaotavora/yasnippet.git
|
||||
[submodule "site-lisp/yasnippet-snippets"]
|
||||
path = site-lisp/yasnippet-snippets
|
||||
url = https://github.com/AndreaCrotti/yasnippet-snippets.git
|
||||
@@ -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)
|
||||
Submodule
+1
Submodule site-lisp/yasnippet added at 5cbdbf0d20.
Submodule
+1
Submodule site-lisp/yasnippet-snippets added at cd665c9cba.
Reference in new issue
Block a user