aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ebuild-snippets.el')
-rw-r--r--ebuild-snippets.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/ebuild-snippets.el b/ebuild-snippets.el
index fccb40d..a16b14f 100644
--- a/ebuild-snippets.el
+++ b/ebuild-snippets.el
@@ -78,7 +78,12 @@
;;;###autoload
(defun ebuild-snippets-initialize ()
"Ebuild-Snippets initialization."
- (add-to-list 'yas-snippet-dirs ebuild-snippets-directory t)
+ ;; Because `yas-snippet-dirs' may be a string.
+ (cond
+ ((listp yas-snippet-dirs)
+ (add-to-list 'yas-snippet-dirs ebuild-snippets-directory t))
+ (t
+ (setq yas-snippet-dirs (list yas-snippet-dirs ebuild-snippets-directory))))
(yas-load-directory ebuild-snippets-directory))
;;;###autoload