mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 17:32:51 +00:00
org.el (org-store-link): Allow to create links from sr-mode
* org.el (org-store-link): Check `dired-mode' through `derived-mode-p' to allow storing links from derived modes like `sr-mode'. Thanks to Thomas Holst for the idea.
This commit is contained in:
parent
5289825cb2
commit
5f2dced185
|
@ -9583,7 +9583,7 @@ active region."
|
|||
(org-store-link-props :type "image" :file buffer-file-name))
|
||||
|
||||
;; In dired, store a link to the file of the current line
|
||||
((eq major-mode 'dired-mode)
|
||||
((derived-mode-p 'dired-mode)
|
||||
(let ((file (dired-get-filename nil t)))
|
||||
(setq file (if file
|
||||
(abbreviate-file-name
|
||||
|
|
Loading…
Reference in a new issue