mirror of
https://github.com/vale981/python-docstring-mode
synced 2025-03-04 17:11:41 -05:00
Add autoload cookies.
This commit is contained in:
parent
263879fb33
commit
ff1c25b12f
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
"docstring_wrap.py")
|
||||
"The location of the docstring_wrap.py script.")
|
||||
|
||||
;;;###autoload
|
||||
(defun python-docstring-fill ()
|
||||
"Wrap Python docstrings as epytext or ReStructured Text."
|
||||
(interactive)
|
||||
|
@ -142,6 +143,7 @@
|
|||
;; inline markup - 1
|
||||
(,python-docstring-epytext-markup-style-italic 1 (quote italic) t)))
|
||||
|
||||
;;;###autoload
|
||||
(define-minor-mode python-docstring-mode
|
||||
"Toggle python-docstring-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-remove-keywords nil python-docstring-keywords)))
|
||||
|
||||
;;;###autoload
|
||||
(defun python-docstring-install ()
|
||||
"Add python-docstring-mode as a hook to python.mode."
|
||||
(add-hook 'python-mode-hook (lambda () (python-docstring-mode t))))
|
||||
|
|
Loading…
Add table
Reference in a new issue