Monday, September 15, 2008

dot emacs

今天双给我的 .emacs 添加了一点新的内容

;; 向前删除一个单词,相应的把默认绑定的 Kill-region 换到其它键
(global-set-key "\C-w" 'backward-kill-word)
(global-set-key "\C-x\C-k" 'kill-region)
(global-set-key "\C-c\C-k" 'kill-region)

(global-set-key (kbd "M-g") 'goto-line)

;; 当文件被修改后相应文件buffer自动刷新
(global-auto-revert-mode 1)

;; Changes all yes/no questions to y/n type
(defalias 'yes-or-no-p 'y-or-n-p)

;; Scroll down with the cursor,move down the buffer one line at a time, instead of in larger amounts.
(setq scroll-step 1)

;; do not make *~ backup files 实际上我很少用到这个备份文件
(setq make-backup-files nil)


;; displays the time in the status bar
(display-time)


不过没有两个问题没有解决:
1. 第一次woman时,其有个 building completion list of all manual topics 的过程,这个过程还是要耗点时间.有没有办法去掉这个过程?

2. woman一个词时,可能会有很多区的manual命中,有没有可能根据当前buffer mode来自动选择一个区.如
pritnf存在于这几个区:
/usr/share/man/man1/printf.1.gz /usr/share/man/man1p/printf.1p.gz
/usr/share/man/man3/printf.3.gz /usr/share/man/man3p/printf.3p.gz.
当我在c-mode下使用woman printf时,则自动选择man3.

3. dired 模式下,按C可以选择拷贝当前选中的文件夹到其它目录,有没有操作可以拷贝一个其它目录到当前目录.

4. 怎么设置 M-x gdb 时是新开一个frame? 因为我想达到一个窗口编辑编译,一个窗口调试的效果..

No comments: