diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-03 16:26:54 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-03 16:26:54 -0600 |
| commit | 15c85254f99b76b84e422f99b7fa941dd878cb3e (patch) | |
| tree | 1fe9aeabac061e92b91237723915df0e2a788b85 /modules/org-config.el | |
| parent | 8d1c6314c041913854762f1dabcc3fd48157fb43 (diff) | |
| download | dotemacs-15c85254f99b76b84e422f99b7fa941dd878cb3e.tar.gz dotemacs-15c85254f99b76b84e422f99b7fa941dd878cb3e.zip | |
feat: Add org-appear and enable org emphasis rendering
Changes:
- Added org-appear package to show emphasis markers only when editing
- Changed org-fontify-emphasized-text from nil to t to render bold/italic
- Updated comment for org-hide-emphasis-markers to reference org-appear
- org-appear reveals markers (* / _) only when cursor is on them
- Also shows link markup and sub/superscripts when editing
- Updated todo.org to mark org-appear task as DONE (Method 2: 3/5)
Result: Cleaner org-mode editing experience with visual emphasis while
maintaining clean appearance when not editing.
Diffstat (limited to 'modules/org-config.el')
| -rw-r--r-- | modules/org-config.el | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/org-config.el b/modules/org-config.el index 555a966b..75d4c7db 100644 --- a/modules/org-config.el +++ b/modules/org-config.el @@ -68,11 +68,11 @@ (set-face-attribute 'org-link nil :underline t) (setq org-ellipsis " ▾") ;; change ellipses to down arrow - (setq org-hide-emphasis-markers t) ;; remove emphasis markers to keep the screen clean + (setq org-hide-emphasis-markers t) ;; hide emphasis markers (org-appear shows them when editing) (setq org-hide-leading-stars t) ;; hide leading stars, just show one per line (setq org-pretty-entities t) ;; render special symbols (setq org-pretty-entities-include-sub-superscripts nil) ;; ...except superscripts and subscripts - (setq org-fontify-emphasized-text nil) ;; ...and don't render bold and italic markup + (setq org-fontify-emphasized-text t) ;; render bold and italic markup (setq org-fontify-whole-heading-line t) ;; fontify the whole line for headings (for face-backgrounds) (add-hook 'org-mode-hook 'prettify-symbols-mode)) @@ -221,6 +221,15 @@ (org-superstar-configure-like-org-bullets) (setq org-superstar-leading-bullet ?\s)) +;; -------------------------------- Org-Appear --------------------------------- + +(use-package org-appear + :hook (org-mode . org-appear-mode) + :custom + (org-appear-autoemphasis t) ;; Show * / _ when cursor is on them + (org-appear-autolinks t) ;; Also works for links + (org-appear-autosubmarkers t)) ;; And sub/superscripts + ;; ------------------------------- Org-Checklist ------------------------------- ;; needed for org-habits to reset checklists once task is complete |
