summaryrefslogtreecommitdiff
path: root/.emacs.d/modules
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-06 16:11:40 +0200
committerThanos Apollo <[email protected]>2023-12-06 16:11:40 +0200
commit305b766438bc63e014457d8c818885c6ea09b993 (patch)
treefa46398dc7e1b37e0da05278cbee4f66d0d37fb3 /.emacs.d/modules
parentabaa8ce97ea62efe4ef94f86c3bc7f828755e4e2 (diff)
emacs:(org) Add thanos/org-hook
Use #'thanos/org-hook as hook for org-mode - Customize org scaling depending on enabled theme
Diffstat (limited to '.emacs.d/modules')
-rw-r--r--.emacs.d/modules/thanos-org.el16
1 files changed, 10 insertions, 6 deletions
diff --git a/.emacs.d/modules/thanos-org.el b/.emacs.d/modules/thanos-org.el
index f0d2686..3e7d9b7 100644
--- a/.emacs.d/modules/thanos-org.el
+++ b/.emacs.d/modules/thanos-org.el
@@ -188,11 +188,15 @@
:height 1.0
:foreground "#fb4934"))
-(add-hook 'org-mode-hook #'(lambda ()
- (display-line-numbers-mode -1)
- ;; (thanos/org-scale)
- (flyspell-mode)
- (org-auto-tangle-mode)))
+(defun thanos/org-hook ()
+ "Add hooks for `org-mode'."
+ (display-line-numbers-mode -1)
+ (flyspell-mode)
+ (org-auto-tangle-mode)
+ (when (not (equal (car custom-enabled-themes) 'modus-vivendi))
+ (thanos/org-scale)))
+
+(add-hook 'org-mode-hook #'thanos/org-hook)
(modify-all-frames-parameters
'((right-divider-width . 5)
@@ -237,4 +241,4 @@
(setf org-download-screenshot-method "scrot --select %s")
(provide 'thanos-org)
-;;; thanos-org-config.el ends here
+;;; thanos-org.el ends here