X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/28f59c22ca8aa240401a66b73ce48a14f9590a8a..a7b8100b52925d82aa1d6fd8606a537ea88b91b9:/packages/darkroom/darkroom.el diff --git a/packages/darkroom/darkroom.el b/packages/darkroom/darkroom.el index 45eaf9d96..654246912 100644 --- a/packages/darkroom/darkroom.el +++ b/packages/darkroom/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