Moved autoload from yas/snippet-dirs to yas/global-mode.

This commit is contained in:
Joao Tavora 2011-10-13 14:43:17 +01:00
parent d3086586be
commit e50eafed99

View File

@ -164,7 +164,6 @@
"Yet Another Snippet extension" "Yet Another Snippet extension"
:group 'editing) :group 'editing)
;;;###autoload
(defcustom yas/snippet-dirs (list "~/.emacs.d/snippets" (defcustom yas/snippet-dirs (list "~/.emacs.d/snippets"
(concat (file-name-directory load-file-name) "snippets")) (concat (file-name-directory load-file-name) "snippets"))
"Directory or list of snippet dirs for each major mode. "Directory or list of snippet dirs for each major mode.
@ -852,6 +851,7 @@ Do this unless `yas/dont-activate' is truish "
(interactive) (interactive)
(yas/minor-mode -1)) (yas/minor-mode -1))
;;;###autoload
(define-globalized-minor-mode yas/global-mode yas/minor-mode yas/minor-mode-on (define-globalized-minor-mode yas/global-mode yas/minor-mode yas/minor-mode-on
:group 'yasnippet :group 'yasnippet
:require 'yasnippet) :require 'yasnippet)