emacs入门基本操作

1 如何安装emacs

sudo apt-get install emacs

 

2 如何开启emacs

emacs有2中模式:图形模式,命令行模式;

打开图形模式:直接输入 emacs

命令行模式:输入 emacs -nw (-nw  相当于 --no-window-system)

 

3 如何执行lisp

ctrl+x ctrl+e

 

4 如何添加一个.el

假如你希望你的.el文件放在~/workroom/lisp目录下面,并存放一个ido.el文件;

那么可以在.emacs加入以下:

 (setq load-path (cons "~/workroom/lisp" load-path))
 (require 'ido)

posted on 2012-11-23 09:42  bluebbc  阅读(227)  评论(0编辑  收藏  举报

导航