简体   繁体   中英

Is there a package or setting to show an org-mode link (under cursor) destination in the modeline or other area of Emacs window?

Is there a package or setting to show an org-mode link (under cursor - without using the mouse) destination in the modeline or other area of Emacs window? It would be nice to have instead of doing Cc Cl to look at it each time.

Try this:

(defun link-message () 
  (let ((object (org-element-context)))
    (when (eq (car object) 'link)
      (message "%s"
           (org-element-property :raw-link object)))))

(add-hook 'post-command-hook 'link-message)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM