add org-appear

This commit is contained in:
2022-01-06 18:06:32 +01:00
parent 6b6ddda3de
commit 3c2423fc40
4 changed files with 342 additions and 2 deletions

View File

@@ -242,9 +242,13 @@ Example defines
:init
(setq org-export-backends '(ascii html icalendar latex md odt reveal tufte))
:config
(setq org-hidden-keywords '(author date title email subtitle)) ;; see also `org-appear'
(setq org-hide-emphasis-markers t) ;; see also `org-appear'
(setq org-startup-folded nil) ;; nil = showall = #+STARTUP: showall
(setq org-startup-with-inline-images t) ;; #+STARTUP: inlineimages|noinlineimages, show inline images when loading a new Org file
(setq org-use-sub-superscripts '{}) ;; braces are *required* in order to trigger interpretations as sub/superscript, see also `org-export-with-sub-superscripts'. C-c C-x \ (`org-toggle-pretty-entities')
(setq org-pretty-entities t) ;; see also `org-appear' and [C-c C-x \] (`org-toggle-pretty-entities')
(setq org-pretty-entities-include-sub-superscripts t) ;; if `org-pretty-entities' is active include also sub-superscripts.
(setq org-image-actual-width '(600)) ;; image width displayed in org
(setq org-tag-persistent-alist '(("ignore" . ?i) ("noexport" . ?n)))
;; todo see also org-todo-keyword-faces and org-superstar-todo-bullet-alist
@@ -293,6 +297,17 @@ Example defines
(add-to-list 'image-file-name-extensions "eps" t)) ;; TODO: eps not needed?
;; Make invisible parts of Org elements appear visible.
(use-package org-appear
:after (org)
:hook (org-mode . org-appear-mode)
:config
(setq org-appear-autoentities t) ;; toogle entities: \alpha -> ɑ, needs `org-pretty-entries' active
(setq org-appear-autoemphasis t) ;; toggle emphasis markers, t by default, needs `org-hide-emphasis-markers' active
(setq org-appear-autolinks t) ;; toogle links, needs `org-link-descriptive' active
(setq org-appear-autosubmarkers t) ;; toogle subscripts and superscripts: ^3 -> ³, needs `org-pretty-entries' active
(setq org-appear-autokeywords t)) ;; toogle keywords: #+TITLE: foo -> foo, needs `org-hidden-keywords' active
(use-package org-contrib
:load-path (lambda () (list (concat config-dir "lisp/org-contrib"))))