Add modules/app/write (WIP)
This commit is contained in:
parent
3c6e1c52af
commit
2752cdc9b9
1 changed files with 19 additions and 0 deletions
19
modules/app/write/autoload.el
Normal file
19
modules/app/write/autoload.el
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
;;; app/write/autoload.el
|
||||||
|
|
||||||
|
(defvar-local +write--buffer-mode nil
|
||||||
|
"TODO")
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(define-minor-mode +write-mode
|
||||||
|
:init-value nil
|
||||||
|
:keymap nil
|
||||||
|
(let ((arg (if +write-mode +1 -1)))
|
||||||
|
(when (and (featurep 'doom-themes)
|
||||||
|
(not +write--buffer-mode)
|
||||||
|
+write-mode)
|
||||||
|
(setq +write--buffer-mode doom-buffer-mode))
|
||||||
|
(when +write--buffer-mode
|
||||||
|
(doom-buffer-mode (if +write-mode -1 +1)))
|
||||||
|
(text-scale-set (if +write-mode 1.5 0))
|
||||||
|
(visual-fill-column-mode arg)
|
||||||
|
(setq line-spacing (if +write-mode 6))))
|
Loading…
Add table
Add a link
Reference in a new issue