emacs推广,配置详细介绍
-
- 帖子: 17
- 注册时间: 2008-08-24 11:46
Re: emacs推广,配置详细介绍
可以叠个图来看看不?
- ccbeing
- 帖子: 114
- 注册时间: 2009-01-06 12:27
Re: emacs推广,配置详细介绍
好贴!已收藏起来!
- xc1427
- 帖子: 276
- 注册时间: 2008-10-11 4:11
- 来自: 瑞金无线电学校
- 联系:
-
- 帖子: 31
- 注册时间: 2009-03-23 16:35
Re: emacs推广,配置详细介绍
前人,帮忙看看,我按照上面做法做得,但是emacs没什么反应,比如,按key帮定ctrl c + k, 依旧是emacs缺省的关闭当前buffer的命令,不是如上面定义的那样。对emacs,我很新手,我的做法如下。
sudo apt-get install emacs
sudo apt-get install ecb
cd
sudo touch .emacs
sudo chmod 777 .emacs
sudo mkdir lib
cd lib
sudo mkdir emacs-lisp
cd emacs-lisp
sudo mkdir slime-2.0
sudo touch jerry-basic.el .... jerry-wiki.el
sudo chmod 777 *.el
ls -l
-rwxrwxrwx 1 777 root 9573 2009-08-07 23:46 jerry-basic.el
-rwxrwxrwx 1 root root 2520 2009-08-07 23:52 jerry-calendar.el
-rwxrwxrwx 1 root root 1320 2009-08-07 23:59 jerry-cedet.el
-rwxrwxrwx 1 root root 2394 2009-08-07 23:55 jerry-dictionary.el
-rwxrwxrwx 1 root root 3441 2009-08-08 00:01 jerry-dired.el
-rwxrwxrwx 1 root root 3237 2009-08-07 23:53 jerry-folding.el
-rwxrwxrwx 1 root root 22955 2009-08-07 23:56 jerry-function.el
-rwxrwxrwx 1 root root 3486 2009-08-07 23:54 jerry-ido.el
-rwxrwxrwx 1 root root 14827 2009-08-08 00:05 jerry-key-bindings.el
-rwxrwxrwx 1 root root 1546 2009-08-07 23:50 jerry-language.el
-rwxrwxrwx 1 root root 2989 2009-08-07 23:56 jerry-mew.el
-rwxrwxrwx 1 root root 20637 2009-08-08 00:02 jerry-mode.el
-rwxrwxrwx 1 root root 2732 2009-08-08 00:00 jerry-org.el
-rwxrwxrwx 1 root root 10302 2009-08-08 00:05 jerry-other-elisp.el
-rwxrwxrwx 1 root root 3008 2009-08-07 23:58 jerry-w3m.el
-rwxrwxrwx 1 root root 1694 2009-08-08 00:04 jerry-wiki.el
cd
cd .emacs.d
ls -a -l
-rwxrwxrwx 1 sl500 sl500 0 2009-08-07 23:41 .abbrev_defs
drwx------ 2 sl500 sl500 4096 2009-08-08 00:19 auto-save-list
-rwxrwxrwx 1 sl500 sl500 0 2009-08-07 23:41 .emacs.bmk
把相应的Lisp脚本复制在相应的文件里。
重启emacs
只测试了ctrl c + k,发现不行。
问题应该是我太匆忙和太新,所以想问,emacs支持的lisp脚本有没有什么调试的方法,就象这个例子,一下子复制很多文件,但是不知道问题出现在哪里,请有懂的帮忙回答一下。
sudo apt-get install emacs
sudo apt-get install ecb
cd
sudo touch .emacs
sudo chmod 777 .emacs
sudo mkdir lib
cd lib
sudo mkdir emacs-lisp
cd emacs-lisp
sudo mkdir slime-2.0
sudo touch jerry-basic.el .... jerry-wiki.el
sudo chmod 777 *.el
ls -l
-rwxrwxrwx 1 777 root 9573 2009-08-07 23:46 jerry-basic.el
-rwxrwxrwx 1 root root 2520 2009-08-07 23:52 jerry-calendar.el
-rwxrwxrwx 1 root root 1320 2009-08-07 23:59 jerry-cedet.el
-rwxrwxrwx 1 root root 2394 2009-08-07 23:55 jerry-dictionary.el
-rwxrwxrwx 1 root root 3441 2009-08-08 00:01 jerry-dired.el
-rwxrwxrwx 1 root root 3237 2009-08-07 23:53 jerry-folding.el
-rwxrwxrwx 1 root root 22955 2009-08-07 23:56 jerry-function.el
-rwxrwxrwx 1 root root 3486 2009-08-07 23:54 jerry-ido.el
-rwxrwxrwx 1 root root 14827 2009-08-08 00:05 jerry-key-bindings.el
-rwxrwxrwx 1 root root 1546 2009-08-07 23:50 jerry-language.el
-rwxrwxrwx 1 root root 2989 2009-08-07 23:56 jerry-mew.el
-rwxrwxrwx 1 root root 20637 2009-08-08 00:02 jerry-mode.el
-rwxrwxrwx 1 root root 2732 2009-08-08 00:00 jerry-org.el
-rwxrwxrwx 1 root root 10302 2009-08-08 00:05 jerry-other-elisp.el
-rwxrwxrwx 1 root root 3008 2009-08-07 23:58 jerry-w3m.el
-rwxrwxrwx 1 root root 1694 2009-08-08 00:04 jerry-wiki.el
cd
cd .emacs.d
ls -a -l
-rwxrwxrwx 1 sl500 sl500 0 2009-08-07 23:41 .abbrev_defs
drwx------ 2 sl500 sl500 4096 2009-08-08 00:19 auto-save-list
-rwxrwxrwx 1 sl500 sl500 0 2009-08-07 23:41 .emacs.bmk
把相应的Lisp脚本复制在相应的文件里。
重启emacs
只测试了ctrl c + k,发现不行。
问题应该是我太匆忙和太新,所以想问,emacs支持的lisp脚本有没有什么调试的方法,就象这个例子,一下子复制很多文件,但是不知道问题出现在哪里,请有懂的帮忙回答一下。
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: emacs推广,配置详细介绍
真是超长啊……
我的写了300行,启动速度就明显慢多了……
果然是强贴啊。
我的写了300行,启动速度就明显慢多了……
果然是强贴啊。
-
- 帖子: 42
- 注册时间: 2007-02-06 22:52
Re: emacs推广,配置详细介绍
我靠,简直就是超级大宝库啊
- magicsilence
- 帖子: 14
- 注册时间: 2008-08-07 1:31
-
- 帖子: 817
- 注册时间: 2008-11-13 16:03
Re: emacs推广,配置详细介绍
dired-single , dired-isearch 好像无效,
(defadvice dired-find-file (around dired-find-file-single-buffer activate)
"Replace current buffer if file is a directory."
(interactive) (let ((orig (current-buffer)) (filename (dired-get-file-for-visit)))
ad-do-it (when (and (file-directory-p filename)
(not (eq (current-buffer) orig))) (kill-buffer orig))))
(defadvice dired-up-directory (around dired-up-directory-single-buffer activate)
"Replace current buffer if file is a directory."
(interactive) (let ((orig (current-buffer))) ad-do-it (kill-buffer orig)))
所以用这个代替dired-single
(defadvice dired-find-file (around dired-find-file-single-buffer activate)
"Replace current buffer if file is a directory."
(interactive) (let ((orig (current-buffer)) (filename (dired-get-file-for-visit)))
ad-do-it (when (and (file-directory-p filename)
(not (eq (current-buffer) orig))) (kill-buffer orig))))
(defadvice dired-up-directory (around dired-up-directory-single-buffer activate)
"Replace current buffer if file is a directory."
(interactive) (let ((orig (current-buffer))) ad-do-it (kill-buffer orig)))
所以用这个代替dired-single
- liuhengloveyou
- 帖子: 167
- 注册时间: 2007-10-18 17:37
- 来自: 深圳
- 联系:
-
- 帖子: 140
- 注册时间: 2008-10-18 22:50
-
- 帖子: 154
- 注册时间: 2007-04-22 21:52
Re: emacs推广,配置详细介绍
这个...信息管理出来的吧 整理这么多,真有耐心!
- yadong
- 帖子: 579
- 注册时间: 2009-08-01 17:14
-
- 帖子: 1
- 注册时间: 2010-10-26 18:17
Re: emacs推广,配置详细介绍
一直纠结在使用emacs还是vim呢。。
收藏了
收藏了
-
- 帖子: 5
- 注册时间: 2012-02-17 18:34
-
- 帖子: 5
- 注册时间: 2012-02-17 18:34