From 395e0a93e7adca57ac1e9923dbd199ce1cdb603b Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Thu, 22 May 2008 05:39:56 +0000 Subject: [PATCH] Added directory to yas/root-directory automatically when loaded. --- yasnippet.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 2086b36..2084786 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -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))