From 9709dbdc3771fa13c407073392d3a8c7b074704b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 5 Jan 2015 11:09:29 +0000 Subject: [PATCH] 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. --- darkroom.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2