This commit is contained in:
Yann Esposito (Yogsototh) 2021-11-09 14:47:28 +01:00
parent b1c9b3cd9f
commit 9c95b9a52e
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
2 changed files with 18 additions and 7 deletions

View file

@ -26,7 +26,7 @@
"The theme for Zen Writer in light mode.")
(defvar +zen-writer-dark-theme 'doom-zen-writer-dark
"The theme for Zen Writer in dark mode.")
(defvar +zen-writer-theme zen-writer-light-theme
(defvar +zen-writer-theme +zen-writer-light-theme
"The theme for Zen Writer when zen-auto-dark-theme is nil. By default it uses the light theme.")
(defvar +zen-writer-auto-dark-theme t
"When true put dark-mode automatically depending on the hour of the day.")
@ -36,7 +36,7 @@
(defvar +zen-writer-evening-hour 18
"Hour (24) at which we start using dark theme. By default 18.")
(defvar zen-writer--pre-zen-doom-theme doom-theme)
(defvar zen-writer--pre-zen-doom-theme nil)
;; internal private state
(define-minor-mode zen-writer-mode
@ -123,10 +123,11 @@
(toggle-frame-fullscreen)
(doom-big-font-mode -1))
(map! :leader
(:prefix ("t W" . "Zen Writer")
:desc "Zen Writer Fullscreen" "W" #'zen-writer-full-mode
:desc "Zen Writer Mode" "w" #'zen-writer-mode))
;; mapping suggestion
;; (map! :leader
;; (:prefix ("t W" . "Zen Writer")
;; :desc "Zen Writer Fullscreen" "W" #'zen-writer-full-mode
;; :desc "Zen Writer Mode" "w" #'zen-writer-mode))
(provide 'zen-writer)
;;; zen-writer.el ends here

View file

@ -183,7 +183,17 @@ Can be an integer to determine the exact padding."
(org-scheduled-today :foreground fg)
(org-scheduled-previously :foreground fg-alt)
(markdown-pre-face :background bg-alt :foreground fg)
(markdown-code-face :background bg-alt :foreground fg)
(markdown-header-face-1 :background bg-alt :foreground fg)
(markdown-header-face-2 :background bg-alt :foreground fg)
(markdown-header-face-3 :background bg-alt :foreground fg)
(markdown-header-face-4 :background bg-alt :foreground fg)
(markdown-header-face-5 :background bg-alt :foreground fg)
(markdown-header-face-6 :background bg-alt :foreground fg)
(markdown-header-face-7 :background bg-alt :foreground fg)
(markdown-header-face-8 :background bg-alt :foreground fg)
(markdown-header-delimiter-face :background bg-alt :foreground fg-alt)
;;;; solaire-mode
(solaire-mode-line-face