From 4b1eaab2057a21410c366ee1f6bad8ea5a7a6d45 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 27 Apr 2022 08:36:35 -0500 Subject: Add +org-show-mode Toggle org-hide-emphasis-markers and org-link display --- lisp/+org.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lisp/+org.el b/lisp/+org.el index 0324cd5..400172f 100644 --- a/lisp/+org.el +++ b/lisp/+org.el @@ -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 -- cgit 1.4.1-21-gabe81