X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/d8c2441bc0d519d13264150176d34ad86972ae96..445258b7156a22c83cc2a4d206ee907bb2b3db09:/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