From: João Távora Date: Mon, 5 Jan 2015 11:09:29 +0000 (+0000) Subject: Add autoload cookies X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/9709dbdc3771fa13c407073392d3a8c7b074704b Add autoload cookies * darkroom.el (darkroom-mode, darkroom-tentative-mode): Add autoload cookie. (darkroom-tentative-mode): Use `declare-function` to try and shoosh byte-compiler. --- diff --git a/darkroom.el b/darkroom.el index 45eaf9d96..654246912 100644 --- a/darkroom.el +++ b/darkroom.el @@ -319,6 +319,9 @@ With optional JUST-MARGINS, just set the margins." ;; for clarity, don't do anything ))) +(declare-function darkroom-tentative-mode "darkroom" t) + +;;;###autoload (define-minor-mode darkroom-mode "Remove visual distractions and focus on writing. When this mode is active, everything but the buffer's text is elided from @@ -341,6 +344,7 @@ screen. Text size is increased (display engine allowing) by (remove-hook 'window-configuration-change-hook 'darkroom--set-margins t)))) +;;;###autoload (define-minor-mode darkroom-tentative-mode "Enters `darkroom-mode' when all other windows are deleted." nil " Room" darkroom-mode-map @@ -370,6 +374,5 @@ screen. Text size is increased (display engine allowing) by (darkroom--leave)))) - (provide 'darkroom) ;;; darkroom.el ends here