From: Tak Kunihiro <tak.kunihiro@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: tak.kunihiro@gmail.com
Subject: Re: Launch application with region as a parameter
Date: Tue, 07 Oct 2014 08:35:26 +0900 (JST) [thread overview]
Message-ID: <20141007.083526.135925861.tak.kunihiro@gmail.com> (raw)
In-Reply-To: <c8c5818b-6df5-4ea1-9db4-25f61d1a66b9@googlegroups.com>
I suppose you want to have something like below.
(defun open-file-at-point ()
"Open a file at point by Explorer."
(interactive)
(let ((file (thing-at-point 'filename)) w32file)
(when (file-exists-p file)
(setq w32file (subst-char-in-string ?/ ?\\ (expand-file-name file)))
(w32-shell-execute "open" "explorer" w32file))))
(global-set-key (kbd "C-c o") 'open-thing-at-point)
next prev parent reply other threads:[~2014-10-06 23:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-06 15:33 Launch application with region as a parameter twiki
2014-10-06 17:01 ` Alexander Baier
2014-10-06 23:35 ` Tak Kunihiro [this message]
[not found] ` <mailman.10602.1412638553.1147.help-gnu-emacs@gnu.org>
2014-10-07 15:54 ` twiki
2014-10-07 16:28 ` Alexander Baier
[not found] ` <mailman.10652.1412699323.1147.help-gnu-emacs@gnu.org>
2014-10-07 16:54 ` twiki
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141007.083526.135925861.tak.kunihiro@gmail.com \
--to=tak.kunihiro@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.
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).