help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch application with region as a parameter


From: twiki
Subject: Re: Launch application with region as a parameter
Date: Tue, 7 Oct 2014 08:54:11 -0700 (PDT)
User-agent: G2/1.0

Ok... thax for suggestion... i've defined launch-command-at-point...

(defun launch-command-at-point()
"Launch associated application for current thing-at-point string"
(interactive)
(async-shell-command (thing-at-point 'filename)))

(global-set-key (kbd "<f11>") 'launch-command-at-point)


...but i don't know how to grab the quoted entire line: i need/want to
pass the entire line to async-shell-command:

...
c:\dir1\subdir a\p1.pdf
...

(grace for my english!)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]