diff options
author | Case Duckworth | 2022-04-27 08:36:35 -0500 |
---|---|---|
committer | Case Duckworth | 2022-04-27 08:36:35 -0500 |
commit | 4b1eaab2057a21410c366ee1f6bad8ea5a7a6d45 (patch) | |
tree | a1fb965f04e211a23d2c58fef210ff04c5255c00 | |
parent | Also inhibit user-save-mode with predicates (diff) | |
download | emacs-4b1eaab2057a21410c366ee1f6bad8ea5a7a6d45.tar.gz emacs-4b1eaab2057a21410c366ee1f6bad8ea5a7a6d45.zip |
Add +org-show-mode
Toggle org-hide-emphasis-markers and org-link display
-rw-r--r-- | lisp/+org.el | 16 |
1 files changed, 16 insertions, 0 deletions
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'." | |||
588 | ("—" "---")))) | 588 | ("—" "---")))) |
589 | (replace-match replace nil nil))))) | 589 | (replace-match replace nil nil))))) |
590 | 590 | ||
591 | ;;; Toggle org-hide-emphasis-markers | ||
592 | |||
593 | (define-minor-mode +org-show-mode | ||
594 | "Show emphasis markers and full links in `org-mode'." | ||
595 | :lighter "/*/" | ||
596 | (setq org-hide-emphasis-markers (not +org-show-mode) | ||
597 | org-link-descriptive (not +org-show-mode)) | ||
598 | (funcall (if +org-show-mode | ||
599 | #'remove-from-invisibility-spec | ||
600 | #'add-to-invisibility-spec) | ||
601 | '(org-link)) | ||
602 | (font-lock-update)) | ||
603 | |||
604 | ;;; go forward and backward in the tree, ~ cleanly ~ | ||
605 | ;; https://stackoverflow.com/a/25201697/10756297 | ||
606 | |||
591 | (provide '+org) | 607 | (provide '+org) |
592 | ;;; +org.el ends here | 608 | ;;; +org.el ends here |