all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [patch] file links from sunrise commander
@ 2014-03-15 20:15 Thomas Holst
  2014-03-17  0:57 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Holst @ 2014-03-15 20:15 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [patch] file links from sunrise commander
  2014-03-15 20:15 [patch] file links from sunrise commander Thomas Holst
@ 2014-03-17  0:57 ` Bastien
  2014-03-17  7:42   ` Thomas Holst
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-03-17  0:57 UTC (permalink / raw)
  To: Thomas Holst; +Cc: emacs-orgmode

Hi Thomas,

Thomas Holst <Thomas_Holst@gmx.de> writes:

> Here is a path with implements this feature.

I used a slightly different technique to avoid the reference to
`sr-mode'.

http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=5f2dce

Thanks for the idea,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] file links from sunrise commander
  2014-03-17  0:57 ` Bastien
@ 2014-03-17  7:42   ` Thomas Holst
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Holst @ 2014-03-17  7:42 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Thomas Holst

Hi Bastien,
· Bastien <bzg@gnu.org> wrote:
> Thomas Holst <Thomas_Holst@gmx.de> writes:
>
>> Here is a path with implements this feature.
>
> I used a slightly different technique to avoid the reference to
> `sr-mode'.
>
> http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=5f2dce
>
> Thanks for the idea,

thanks for implementing this feature. Your way of implementing it is
more general. I am constantly learning lisp reading this list and trying
to contribute.

-- 
Bis neulich ...
  Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-17  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-15 20:15 [patch] file links from sunrise commander Thomas Holst
2014-03-17  0:57 ` Bastien
2014-03-17  7:42   ` Thomas Holst

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.