在终端里, 想编辑一个文件的时候, 运行emacs file_to_edit, 会启动emacs, 然后慢慢地 load 你的~/.emacs, 尽管你之前已经开了个emacs了. 因为这个, 我还是喜欢用vi file_to_edit.
事实上, 可以使用emacsclient, 速度一流. 前提是 emacs 先启动 server 模式, 可以用 M-x server-start 来启动 server 模式,我在 ~/.emacs 里面加入 (server-start) 来自动启动 server。
这样就可以在终端里运行 emacsclient file_to_edit 了, 会自动跳到server里.
我嫌 emacsclient 太长, 我把它弄成 alias ec='emacsclient -n'
2008年12月4日星期四
emacsclient - tells a running Emacs to visit a file
订阅:
博文评论 (Atom)
没有评论:
发表评论