branch: master
commit 9709dbdc3771fa13c407073392d3a8c7b074704b
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
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 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/darkroom.el b/darkroom.el
index 45eaf9d..6542469 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