From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: [patch] file links from sunrise commander Date: Sat, 15 Mar 2014 21:15:11 +0100 Message-ID: <87a9cri5gw@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=Multipart0o0o0o0o0o0o0o" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOuzH-0001Sc-NK for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 16:15:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOuzB-0002gO-Rc for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 16:15:19 -0400 Received: from mout.gmx.net ([212.227.15.18]:63725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOuzB-0002eM-G6 for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 16:15:13 -0400 Received: from thommy-desktop ([84.57.175.23]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M6jIK-1XIvJc1hg4-00wY8w for ; Sat, 15 Mar 2014 21:15:12 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=Multipart0o0o0o0o0o0o0o Content-Type: text/plain 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 --=Multipart0o0o0o0o0o0o0o Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-file-links-from-sunrise-commander.patch Content-Description: patch for file links from sunrise commander >From 1bd6924c377c46e0d3b480e4e31475ae320e8d8b Mon Sep 17 00:00:00 2001 From: Thomas Holst 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 --=Multipart0o0o0o0o0o0o0o--