Replace add-hook with doom's wrapper

This commit is contained in:
2023-03-23 02:54:41 +01:00
parent 1f183d9ef8
commit de5d9f5d0d
2 changed files with 10 additions and 10 deletions

12
+org.el
View File

@@ -8,7 +8,7 @@
;; Disable completion
(set-company-backend! 'org-mode nil)
;; Turn off line numbers
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
(add-hook! 'org-mode-hook (display-line-numbers-mode -1))
;; Add Notes to agenda
(setq org-agenda-files '("~/Notes"))
;; Tailor Org super agenda
@@ -57,10 +57,10 @@
(:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no"))
org-babel-default-lob-header-args '((:exports . "both")))
;; Enter writeroom-mode in all org files
(add-hook 'org-mode-hook 'global-writeroom-mode)
(add-hook! 'org-mode-hook 'global-writeroom-mode)
(setq writeroom-major-modes '(org-mode)
+zen-text-scale 1.5)
(add-hook 'org-mode-hook 'visual-line-mode)
(add-hook! 'org-mode-hook 'visual-line-mode)
;; Respect LANGUAGE export variable
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex")))
;; Don't evaluate code blocks on export
@@ -160,7 +160,7 @@
:hook (org-mode . org-modern-mode)
:config
(setq org-modern-star [""]))
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
(add-hook! 'org-agenda-finalize-hook #'org-modern-agenda)
;; Configure a better split and some default for org-noter
(after! org-noter
(setq org-noter-always-create-frame nil
@@ -181,9 +181,9 @@
;; Only show a task once if it has a schedule and deadline
(setq org-agenda-skip-deadline-prewarning-if-scheduled t)
;; Show raw latex when the cursor on the expression
(add-hook 'org-mode-hook 'org-fragtog-mode)
(add-hook! 'org-mode-hook 'org-fragtog-mode)
;; Auto tangle on save
(add-hook 'org-mode-hook 'org-auto-tangle-mode)
(add-hook! 'org-mode-hook 'org-auto-tangle-mode)
;; Save bibtex to annotated bibliography with category selection
(setq org-goto-interface 'outline-path-completion
org-goto-max-level 1)