On Fri, May 05 2006, Kevin Rodgers wrote:
Rares Vernica wrote:
For example, I have the gnuplot (.plt) file and I would like to run
"gnuplot %f" (where %f is the file name) when I press C-c C-c on
that file.
Hmmm, when I visit a .plt file it's in Fundamental mode. You could
define your own Gnuplot mode
gnuplot comes with a gnuplot mode in gnuplot.el (and gnuplot-gui.el).
(with a local keymap that binds `C-c C-c' to an Emacs command that
runs gnuplot on the visited file)
gnuplot.el has `C-c C-b' for `gnuplot-send-buffer-to-gnuplot'. It
would be better if they'd bind `gnuplot-send-buffer-to-gnuplot' or
`gnuplot-send-file-to-gnuplot' instead of
`gnuplot-gui-set-options-and-insert' to `C-c C-c'.
Bye, Reiner.