lang/org: reformat UI config; setq-default -> setq

This commit is contained in:
Henrik Lissner 2019-10-28 02:02:45 -04:00
parent 7b9c13f25f
commit bec1891a3d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -83,8 +83,7 @@ path too.")
(defun +org-init-appearance-h () (defun +org-init-appearance-h ()
"Configures the UI for `org-mode'." "Configures the UI for `org-mode'."
(setq-default (setq org-indirect-buffer-display 'current-window
org-indirect-buffer-display 'current-window
org-eldoc-breadcrumb-separator "" org-eldoc-breadcrumb-separator ""
org-enforce-todo-dependencies t org-enforce-todo-dependencies t
org-entities-user org-entities-user
@ -104,9 +103,7 @@ path too.")
(?C . success)) (?C . success))
org-startup-indented t org-startup-indented t
org-tags-column -80 org-tags-column -80
org-use-sub-superscripts '{} org-use-sub-superscripts '{})
;; Scale up LaTeX previews a bit (default is too small)
org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
(setq org-refile-targets (setq org-refile-targets
'((nil :maxlevel . 3) '((nil :maxlevel . 3)
@ -118,6 +115,9 @@ path too.")
org-refile-use-outline-path 'file org-refile-use-outline-path 'file
org-outline-path-complete-in-steps nil) org-outline-path-complete-in-steps nil)
;; Scale up LaTeX previews a bit (default is too small)
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
;; ...and fix their background w/ themes
(add-hook! 'doom-load-theme-hook (add-hook! 'doom-load-theme-hook
(defun +org-refresh-latex-background () (defun +org-refresh-latex-background ()
"Previews are usually rendered with light backgrounds, so ensure their "Previews are usually rendered with light backgrounds, so ensure their