dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

commit a48696691b6c0a30a67d0104627a15957b8494e6
parent bfc96035ea78bfecdae2fa57b57801e53a5de081
Author: Anders Hedman <anders.hedman01@gmail.com>
Date:   Tue, 27 Dec 2022 22:54:06 +0100

doom: org-present-mode config

Diffstat:
M.doom.d/config.el | 37+++++++++++++++++++++++++++++++++++++
M.doom.d/packages.el | 2++
2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/.doom.d/config.el b/.doom.d/config.el @@ -96,6 +96,13 @@ )))) (setq markdown-nested-imenu-heading-index t) +(setq-default fill-column 70) +(use-package! visual-fill-column + :config + (setq-default visual-fill-column-width 77) + (setq-default visual-fill-column-center-text nil) + ) + (use-package! org ;; Set above, before org load (setq org-directory "~/NC/org/") :config @@ -103,6 +110,15 @@ (setq org-agenda-files "~/NC/org/agenda.org") (setq org-log-done 'time) (setq org-log-into-drawer t) + (custom-set-faces! + '(org-document-title :height 1.3) + '(org-level-1 :inherit outline-1 :height 1.4) + '(org-level-2 :inherit outline-2 :height 1.15) + '(org-level-3 :inherit outline-3 :height 1.12) + '(org-level-4 :inherit outline-4 :height 1.09) + '(org-level-5 :inherit outline-5 :height 1.06) + '(org-level-6 :inherit outline-6 :height 1.03) + ) (setq org-refile-targets '(("archive.org" :maxlevel . 1) ("todo.org" :maxlevel . 1) @@ -135,6 +151,27 @@ (advice-add 'org-refile :after 'org-save-all-org-buffers) ) +;; org-present config +(after! org + (defun my/org-present-start () + (text-scale-set 4) + (setq display-line-numbers nil) + (setq visual-fill-column-width 50) + (setq visual-fill-column-center-text t) + (visual-fill-column-mode 1) + (visual-line-mode 1)) + + (defun my/org-present-end () + (setq display-line-numbers t) + (setq visual-fill-column-width 77) + (setq visual-fill-column-center-text nil) + (visual-fill-column-mode 0) + (visual-line-mode 0)) + + (add-hook 'org-present-mode-hook 'my/org-present-start) + (add-hook 'org-present-mode-quit-hook 'my/org-present-end) + ) + (after! treemacs (treemacs-indent-guide-mode 1) (treemacs-follow-mode t)) diff --git a/.doom.d/packages.el b/.doom.d/packages.el @@ -53,3 +53,5 @@ (package! ox-gemini) (package! terminal-here) (package! elpher) +(package! org-present) +(package! visual-fill-column)