(defun func ()
    (interactive)
    (call-process "perl" (buffer-file-name (current-buffer)))
)
(global-set-key [(control a) (control b) (control c)] 'func)
这样大概可以吧,测试一下。
当然,简单点可以直接M-x。

在 2011年6月23日 下午2:18,wu wolfman <[email protected]>写道:

> 假如: 用 emacs 写了/打开 一个 hello world 的 perl程序。
>
> 请问: 在 emacs 里能直接运行这个 perl 程序吗? (有别于到 shell 下面去另外运行的方式)
>
> 谢谢!
>



-- 
无能者无所求,饱食而遨游,泛若不系之舟
blog: http://shell909090.com/blog/
twitter: http://twitter.com/shell909090

回复