Add autoload cookies.

This commit is contained in:
Tom Prince 2015-10-14 09:53:47 +02:00
parent 263879fb33
commit ff1c25b12f

View file

@ -36,6 +36,7 @@
"docstring_wrap.py") "docstring_wrap.py")
"The location of the docstring_wrap.py script.") "The location of the docstring_wrap.py script.")
;;;###autoload
(defun python-docstring-fill () (defun python-docstring-fill ()
"Wrap Python docstrings as epytext or ReStructured Text." "Wrap Python docstrings as epytext or ReStructured Text."
(interactive) (interactive)
@ -142,6 +143,7 @@
;; inline markup - 1 ;; inline markup - 1
(,python-docstring-epytext-markup-style-italic 1 (quote italic) t))) (,python-docstring-epytext-markup-style-italic 1 (quote italic) t)))
;;;###autoload
(define-minor-mode python-docstring-mode (define-minor-mode python-docstring-mode
"Toggle python-docstring-mode. "Toggle python-docstring-mode.
With no argument, this command toggles the mode. With no argument, this command toggles the mode.
@ -158,6 +160,7 @@ Null prefix argument turns off the mode."
(font-lock-add-keywords nil python-docstring-keywords) (font-lock-add-keywords nil python-docstring-keywords)
(font-lock-remove-keywords nil python-docstring-keywords))) (font-lock-remove-keywords nil python-docstring-keywords)))
;;;###autoload
(defun python-docstring-install () (defun python-docstring-install ()
"Add python-docstring-mode as a hook to python.mode." "Add python-docstring-mode as a hook to python.mode."
(add-hook 'python-mode-hook (lambda () (python-docstring-mode t)))) (add-hook 'python-mode-hook (lambda () (python-docstring-mode t))))