]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Provide 'rstdoc' feature at end of file
authorJonas Bernoulli <jonas@bernoul.li>
Sat, 8 Aug 2020 11:49:59 +0000 (13:49 +0200)
committerDavid Bremner <david@tethera.net>
Mon, 10 Aug 2020 00:14:36 +0000 (21:14 -0300)
Features should nearly always be provided at the very end of their
libraries.  This feature isn't one of the rare exceptions.

emacs/rstdoc.el

index 41390bbef5d223acf32f4fa750f375adcbc9e4af..63fa2794c08c176ef116611e5d4d8fca0cda9a86 100644 (file)
@@ -32,8 +32,6 @@
 
 ;;; Code:
 
-(provide 'rstdoc)
-
 (defun rstdoc-batch-extract ()
   "Extract docstrings to and from the files on the command line."
   (apply #'rstdoc-extract command-line-args-left))
@@ -82,4 +80,6 @@
        (replace-match (cdr pair))))
     (buffer-substring (point-min) (point-max))))
 
+(provide 'rstdoc)
+
 ;;; rstdoc.el ends here