From a068f2cfff72194d90ee7046d72f120d87ee12d1 Mon Sep 17 00:00:00 2001 From: TEC Date: Fri, 5 Mar 2021 04:54:15 +0800 Subject: [PATCH] Org: Subtley improve writeroom styling Less content indentation, and some variables that should be reset that were forgotten about. --- config.org | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 273b822..f092b76 100644 --- a/config.org +++ b/config.org @@ -2056,6 +2056,7 @@ tweaks. Namely: + Hiding headline leading stars + Using fleurons as headline bullets + Hiding line numbers ++ Removing outline indentation + Centring the text + Turning on ~org-pretty-table-mode~ @@ -2080,13 +2081,17 @@ tweaks. Namely: (when +zen--original-solaire-mode-p (solaire-mode 1))))) (pushnew! writeroom--local-variables 'display-line-numbers - 'visual-fill-column-width) + 'visual-fill-column-width + 'org-adapt-indentation + 'org-superstar-headline-bullets-list + 'org-superstar-remove-leading-stars) (add-hook 'writeroom-mode-enable-hook (defun +zen-prose-org-h () "Reformat the current Org buffer appearance for prose." - (when (and (eq major-mode 'org-mode) writeroom-mode) + (when (eq major-mode 'org-mode) (setq display-line-numbers nil - visual-fill-column-width 60) + visual-fill-column-width 60 + org-adapt-indentation nil) (when (featurep 'org-superstar) (setq-local org-superstar-headline-bullets-list '("🙘" "🙙" "🙚" "🙛") ;; org-superstar-headline-bullets-list '("🙐" "🙑" "🙒" "🙓" "🙔" "🙕" "🙖" "🙗")