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

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

RE: emacs equivalent of vi %


From: Arnaldo Mandel
Subject: RE: emacs equivalent of vi %
Date: Wed, 13 Aug 2008 08:37:18 -0300

Rustom Mody wrote (on Aug 13, 2008):
 > In vi one can do, for example,
 > :!gcc %
 > and the current file gets compiled -- ingeneral :
 > :!someCommand options % otherStuff
 > and the filename gets interpolated.
 > Is there any way to get the '%' behavior in emacs?
 > [Note: I know about compile; I am asking a more general question about
 > getting the filename]

See

   shell-command-on-region

or, better yet,

   shell-command-with-completion-on-region

-- 
Arnaldo Mandel                        
Departamento de Ciência da Computação - Computer Science Department
Universidade de São Paulo, Bra[sz]il      
address@hidden
Talvez você seja um Bright http://the-brights.net Maybe you are a Bright.




reply via email to

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