* darkroom.el (darkroom-mode, darkroom-tentative-mode): Add autoload cookie.
(darkroom-tentative-mode): Use `declare-function` to try and
shoosh byte-compiler.
;; for clarity, don't do anything
)))
;; 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
(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
(remove-hook 'window-configuration-change-hook 'darkroom--set-margins
t))))
(remove-hook 'window-configuration-change-hook 'darkroom--set-margins
t))))
(define-minor-mode darkroom-tentative-mode
"Enters `darkroom-mode' when all other windows are deleted."
nil " Room" darkroom-mode-map
(define-minor-mode darkroom-tentative-mode
"Enters `darkroom-mode' when all other windows are deleted."
nil " Room" darkroom-mode-map
(provide 'darkroom)
;;; darkroom.el ends here
(provide 'darkroom)
;;; darkroom.el ends here