diff --git a/yasnippet.el b/yasnippet.el index 57e95898..9b4a8796 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1685,7 +1685,8 @@ Optional USE-JIT use jit-loading of snippets." (interactive "DSelect the root directory: ") (unless yas/snippet-dirs (setq yas/snippet-dirs top-level-dir)) - (dolist (dir (yas/subdirs top-level-dir)) + (dolist (dir (or (yas/subdirs top-level-dir) + (list (expand-file-name "." top-level-dir)))) (let* ((major-mode-and-parents (yas/compute-major-mode-and-parents (concat dir "/dummy"))) (mode-sym (car major-mode-and-parents))