Move some org-mode setq calls into use-package custom block

This commit is contained in:
Evie Litherland-Smith 2024-04-18 14:24:49 +01:00
parent 82967137ea
commit 275c656277

61
init.el
View file

@ -639,31 +639,21 @@ Try `magit-clone-default-directory' if available, fall back to
(emms-cache-enable)
(add-hook 'emms-player-started-hook #'emms-show))
(setq org-directory "~/Documents/Org"
org-default-notes-file (expand-file-name "notes.org" org-directory)
org-attach-id-dir (expand-file-name "data/" org-directory)
org-hide-emphasis-markers nil
org-pretty-entities-include-sub-superscripts t
org-fontify-done-headline t
org-fontify-todo-headline t
org-fontify-emphasized-text t
org-fontify-quote-and-verse-blocks t
org-src-window-setup 'current-window
org-tags-column 0
org-outline-path-complete-in-steps nil
org-return-follows-link t
org-mouse-1-follows-link t
org-link-descriptive t
org-enforce-todo-dependencies t
org-enforce-todo-checkbox-dependencies t
org-refile-use-outline-path t
org-refile-allow-creating-parent-nodes t
org-refile-use-outline-path 'file
org-refile-targets '((nil . (:maxlevel . 2))
(org-agenda-files . (:maxlevel . 2))))
(use-package org
:custom
(org-directory "~/Documents/Org")
(org-default-notes-file (expand-file-name "notes.org" org-directory))
(org-hide-emphasis-markers nil)
(org-pretty-entities-include-sub-superscripts t)
(org-fontify-done-headline t)
(org-fontify-todo-headline t)
(org-fontify-emphasized-text t)
(org-fontify-quote-and-verse-blocks t)
(org-tags-column 0)
(org-enforce-todo-dependencies t)
(org-enforce-todo-checkbox-dependencies t)
(org-yank-folded-subtrees nil)
(org-yank-adjusted-subtrees t)
(org-M-RET-may-split-line '((default . nil)
@ -682,9 +672,30 @@ Try `magit-clone-default-directory' if available, fall back to
(set-face-attribute 'org-verse nil :inherit 'variable-pitch)
;; Enable auto-fill in org-mode buffers
(add-hook 'org-mode-hook #'turn-on-auto-fill)
;; Visually indent org-mode files to a given header level
(require 'org-indent)
(add-hook 'org-mode-hook #'(lambda () (org-indent-mode +1))))
;; Extra `setq' calls to be moved somewhere else
(setq org-attach-id-dir (expand-file-name "data/" org-directory)))
(use-package org-keys
:custom
(org-return-follows-link t)
(org-mouse-1-follows-link t))
(use-package org-indent
:after org
:hook org-mode)
(use-package org-refile
:custom
(org-outline-path-complete-in-steps nil)
(org-refile-use-outline-path t)
(org-refile-allow-creating-parent-nodes t)
(org-refile-use-outline-path 'file)
(org-refile-targets '((nil . (:maxlevel . 2))
(org-agenda-files . (:maxlevel . 2)))))
(use-package org-src
:custom
(org-src-window-setup 'current-window))
(keymap-global-set "C-c o ." #'calendar)
(keymap-global-set "C-c o a" #'org-agenda)