Minor refactoring/reformatting across the board
This commit is contained in:
parent
3930a23084
commit
0b8e7a27b6
4 changed files with 10 additions and 10 deletions
|
@ -162,6 +162,7 @@ improvements, tutorials and/or articles to submit, don't hesitate to get in
|
|||
contact via our [[https://discord.gg/bcZ6P3y][Discord server]] or [[mailto:henrik@lissner.net][email]]. I appreciate any help I can get!
|
||||
|
||||
** TODO Contributing to Doom's manual
|
||||
|
||||
** TODO Contributing module documentation
|
||||
|
||||
* TODO Other ways to support Doom Emacs
|
||||
|
|
|
@ -437,6 +437,6 @@ unfold to point on startup."
|
|||
;;;###autoload
|
||||
(defun +org-enable-auto-update-cookies-h ()
|
||||
"Update statistics cookies when saving or exiting insert mode (`evil-mode')."
|
||||
(when (featurep 'evil)
|
||||
(when (bound-and-true-p evil-local-mode)
|
||||
(add-hook 'evil-insert-state-exit-hook #'+org-update-cookies-h nil t))
|
||||
(add-hook 'before-save-hook #'+org-update-cookies-h nil t))
|
||||
|
|
|
@ -111,7 +111,7 @@ path too.")
|
|||
;; Without this, completers like ivy/helm are only given the first level of
|
||||
;; each outline candidates. i.e. all the candidates under the "Tasks" heading
|
||||
;; are just "Tasks/". This is unhelpful. We want the full path to each refile
|
||||
;; target! e.g. FILE/Task/heading/subheading
|
||||
;; target! e.g. FILE/Tasks/heading/subheading
|
||||
org-refile-use-outline-path 'file
|
||||
org-outline-path-complete-in-steps nil)
|
||||
|
||||
|
@ -122,12 +122,11 @@ path too.")
|
|||
(defun +org-refresh-latex-background ()
|
||||
"Previews are usually rendered with light backgrounds, so ensure their
|
||||
background (and foreground) match the current theme."
|
||||
(setq org-format-latex-options
|
||||
(plist-put org-format-latex-options
|
||||
(plist-put! org-format-latex-options
|
||||
:background
|
||||
(face-attribute (or (cadr (assq 'default face-remapping-alist))
|
||||
'default)
|
||||
:background nil t)))))
|
||||
:background nil t))))
|
||||
|
||||
;; HACK Face specs fed directly to `org-todo-keyword-faces' don't respect
|
||||
;; underlying faces like the `org-todo' face does, so we define our own
|
||||
|
@ -164,7 +163,7 @@ background (and foreground) match the current theme."
|
|||
(format "Link: %s" link))
|
||||
(apply orig-fn args)))
|
||||
|
||||
;; Don't do automatic indent detection in org files
|
||||
;; Automatic indent detection in org files is meaningless
|
||||
(cl-pushnew 'org-mode doom-detect-indentation-excluded-modes :test #'eq)
|
||||
|
||||
(set-pretty-symbols! 'org-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue