I wanted this operation on a key (rather than a menu option), so I am
sharing my function in case anyone else finds it useful:

(defun org-toggle-link-style ()
  "Toggle between descriptive and literal link styles."
  (interactive)
  (if (member '(org-link) buffer-invisibility-spec)
      ;; descriptive -> literal
      (progn
        (org-remove-from-invisibility-spec '(org-link))
        (message "Showing literal links"))
    ;; literal -> descriptive
    (org-add-to-invisibility-spec '(org-link))
    (message "Showing descriptive links"))
  (org-restart-font-lock))


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to