mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Added directory to yas/root-directory automatically when loaded.
This commit is contained in:
parent
31865ae984
commit
395e0a93e7
@ -1039,8 +1039,7 @@ name. And under each subdirectory, each file is a definition
|
||||
of a snippet. The file name is the trigger key and the
|
||||
content of the file is the template."
|
||||
(interactive "DSelect the root directory: ")
|
||||
(when (and (interactive-p)
|
||||
(file-directory-p directory))
|
||||
(when (file-directory-p directory)
|
||||
(add-to-list 'yas/root-directory directory))
|
||||
(dolist (dir (yas/directory-files directory nil))
|
||||
(yas/load-directory-1 dir))
|
||||
|
Loading…
x
Reference in New Issue
Block a user