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:
Bastien Guerry 2014-03-17 01:56:59 +01:00
parent 5289825cb2
commit 5f2dced185
1 changed files with 1 additions and 1 deletions

View File

@ -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