William Xu | 1 Mar 2008 10:43
Picon
Gravatar

buffer-action.el --- Perform actions(compile/run, etc) in buffer based on mode/filename v3.0

This is a mostly rewritten based on ideas from Seiji Zenitani
<zenitani <at> mac.com>'s `smart-compile.el'. Besides compile action, i've
add a run action, and maybe more in the future.

Let me illustrate it by an example. Suppose you are editing a file
named `foo.c'. To compile it, `M-x buffer-action-compile', it will run
a shell command similar to `gcc -o foo foo.c -O2'; to run the
executable binary `foo' , `M-x buffer-action-run', it will run a shell
command similar to `./foo'. Sounds neat, right? 

For more, see Commentary.

[Note, previously this package is also known as smart-compile.el, i
renamed it to buffer-action.el this time.]

--

-- 
William

http://williamxu.net9.org
Attachment (buffer-action.el): application/emacs-lisp, 8 KiB
_______________________________________________
gnu-emacs-sources mailing list
gnu-emacs-sources <at> gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Gmane