mirror of
https://github.com/vale981/python-docstring-mode
synced 2025-03-05 09:31:43 -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")
|
"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))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue