emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas Holst <Thomas_Holst@gmx.de>
To: emacs-orgmode@gnu.org
Subject: [patch] file links from sunrise commander
Date: Sat, 15 Mar 2014 21:15:11 +0100	[thread overview]
Message-ID: <87a9cri5gw@gmx.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch for file links from sunrise commander --]
[-- Type: text/x-diff, Size: 843 bytes --]

From 1bd6924c377c46e0d3b480e4e31475ae320e8d8b Mon Sep 17 00:00:00 2001
From: Thomas Holst <thomas_holst@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	other threads:[~2014-03-15 20:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-15 20:15 Thomas Holst [this message]
2014-03-17  0:57 ` [patch] file links from sunrise commander Bastien
2014-03-17  7:42   ` Thomas Holst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9cri5gw@gmx.de \
    --to=thomas_holst@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).