Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes on recompiling snippets for the compile functions. #1138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions yasnippet.el
Original file line number Diff line number Diff line change
Expand Up @@ -2097,13 +2097,19 @@ prefix argument."
"Create .yas-compiled-snippets.el files under subdirs of TOP-LEVEL-DIR.

This works by stubbing a few functions, then calling
`yas-load-directory'."
`yas-load-directory'.

Remember to recompile the directory after adding or updating snippets,
or they will not be effective."
(interactive "DTop level snippet directory?")
(let ((yas--creating-compiled-snippets t))
(yas-load-directory top-level-dir nil)))

(defun yas-recompile-all ()
"Compile every dir in `yas-snippet-dirs'."
"Compile every dir in `yas-snippet-dirs'.

Remember to recompile all after adding or updating snippets,
or they will not be effective."
(interactive)
(mapc #'yas-compile-directory (yas-snippet-dirs)))

Expand Down