[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
buffer-action.el --- Perform actions(compile/run, etc) in buffer based o
From: |
William Xu |
Subject: |
buffer-action.el --- Perform actions(compile/run, etc) in buffer based on mode/filename v3.0 |
Date: |
Sat, 01 Mar 2008 18:43:08 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (darwin) |
This is a mostly rewritten based on ideas from Seiji Zenitani
<address@hidden>'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
buffer-action.el
Description: application/emacs-lisp
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- buffer-action.el --- Perform actions(compile/run, etc) in buffer based on mode/filename v3.0,
William Xu <=