Add +org-show-mode

Toggle org-hide-emphasis-markers and org-link display
This commit is contained in:
Case Duckworth 2022-04-27 08:36:35 -05:00
parent 8edc3aa615
commit 4b1eaab205
1 changed files with 16 additions and 0 deletions

View File

@ -588,5 +588,21 @@ and POST-PROCESS are passed to `org-export-to-file'."
("" "---"))))
(replace-match replace nil nil)))))
;;; Toggle org-hide-emphasis-markers
(define-minor-mode +org-show-mode
"Show emphasis markers and full links in `org-mode'."
:lighter "/*/"
(setq org-hide-emphasis-markers (not +org-show-mode)
org-link-descriptive (not +org-show-mode))
(funcall (if +org-show-mode
#'remove-from-invisibility-spec
#'add-to-invisibility-spec)
'(org-link))
(font-lock-update))
;;; go forward and backward in the tree, ~ cleanly ~
;; https://stackoverflow.com/a/25201697/10756297
(provide '+org)
;;; +org.el ends here