From: escherdragon@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Sunrise Commander: Version 3 released.
Date: Wed, 18 Mar 2009 02:42:34 -0700 (PDT) [thread overview]
Message-ID: <7d4d510f-9b6d-4164-b494-5e2a7db10b9f@v15g2000yqn.googlegroups.com> (raw)
In-Reply-To: 753c080b-d061-46cc-8c60-6fbe6a08934b@e1g2000pra.googlegroups.com
On Mar 18, 9:57 am, rustom <rustompm...@gmail.com> wrote:
(...)
> This makes the command `op file' behave like double click in eshell
>
> So then I need to redefine dired-find-file thus:
>
> (defun dired-find-file ()
> (interactive)
> (eshell/op (dired-get-file-for-visit))
> )
>
> So some questions:
> How do you put such a redefinition on a hook? (Needs to be defuned
> after dired is require-d)
> It needs to be more sophisticated: eg this way hitting return on a
> directory opens windows explorer but it should probably open another
> dired. More generally all the emacs-ish should stay in emacs with the
> w32-shell-execute only used as a catch-all for files that emacs cant/
> shouldnt handle.
Oh, once again I forgot point 0.5 :)
0.5) Get and install Markus Triska's openwith -- it will allow to open
your files using external programs based on file extension. It can be
found in the Emacs Wiki: http://www.emacswiki.org/emacs/OpenWith
Isn't this solution good enough? I find it fantastic, but to be honest
I haven't tried it on Windows.
Another possibility for you rodent lovers ;-) would be to give dired-
dd (http://www.asahi-net.or.jp/~pi9s-nnb/dired-dd-home.html) a try.
Unfortunately it won't work right out of the box with sunrise, but
after applying the following patch to dired-dd it does (I'm currently
trying to get in contact with the author to have it included in the
standard distribution of dired-dd):
*************************** CUT HERE ***************************
1569c1569
< (if (not (eq major-mode 'dired-mode))
---
> (if (not (derived-mode-p 'dired-mode))
1793c1793
< (if (eq 'dired-mode major-mode)
---
> (if (derived-mode-p 'dired-mode)
1836c1836
< (if (setq target-diredp (eq 'dired-mode major-mode))
---
> (if (setq target-diredp (derived-mode-p 'dired-mode))
*************************** CUT HERE ***************************
I could write a sunrise extension to make sunrise appear as clean
dired to dired-dd (in fact I already have) but I think this direct
modification of dired-dd is a more elegant solution. For a better
effect add this to your .emacs file after requiring dired-dd:
(setq dired-dd-find-file-method 'sr-advertised-find-file)
Dired DD has all bells and whistles one can possibly imagine for the
mouse (even assigning sounds to operations!)
Cheers,
--
José A. Romero L.
escherdragon@gmail.com
"We who cut mere stones must always be envisioning cathedrals."
(Quarry worker's creed)
next prev parent reply other threads:[~2009-03-18 9:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-28 16:05 Sunrise Commander: Version 3 released escherdragon
2009-03-01 2:06 ` Leo
[not found] ` <mailman.2120.1235873238.31690.help-gnu-emacs@gnu.org>
2009-03-01 17:23 ` escherdragon
2009-03-13 7:30 ` rustom
2009-03-17 20:00 ` escherdragon
2009-03-18 8:57 ` rustom
2009-03-18 9:42 ` escherdragon [this message]
2009-03-18 12:26 ` rustom
2009-03-18 14:56 ` Drew Adams
2009-03-18 16:58 ` escherdragon
2009-03-18 14:51 ` Drew Adams
[not found] ` <mailman.3502.1237387928.31690.help-gnu-emacs@gnu.org>
2009-03-18 17:03 ` escherdragon
2009-03-18 18:46 ` Drew Adams
[not found] ` <mailman.3512.1237401999.31690.help-gnu-emacs@gnu.org>
2009-03-19 0:19 ` escherdragon
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7d4d510f-9b6d-4164-b494-5e2a7db10b9f@v15g2000yqn.googlegroups.com \
--to=escherdragon@gmail.com \
--cc=help-gnu-emacs@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 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.