Hi,

sunrise commander is a two pane file manager like midnight commander but
inside emacs. It reuses much of dired but has its own mode. I use
sunrise commander a lot so I like to create links to files from within it.

Here is a path with implements this feature.

If you like it feel free use it.

-- 
Bis neulich ...
  Thomas

>From 1bd6924c377c46e0d3b480e4e31475ae320e8d8b Mon Sep 17 00:00:00 2001
From: Thomas Holst <thomas_ho...@gmx.de>
Date: Sat, 15 Mar 2014 16:23:49 +0100
Subject: [PATCH 2/2] links to files from sunrise-commander

* org.el (org-store-link): links to files can be crated from dired
  or sunrise commander.

  TINYCHANGE
---
 lisp/org.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index b1022fd..52932b6 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9582,7 +9582,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)
+	((memq major-mode '(dired-mode sr-mode))
 	 (let ((file (dired-get-filename nil t)))
 	   (setq file (if file
 			  (abbreviate-file-name
-- 
1.7.9.5

Reply via email to