Emacs使用ecb
时间:2006-09-04 来源:linxh
1 emacs ecb
ecb-active
custom-option
ecb-source-path
Ctrl+.+g+窗口缩写(directory,source,method,history)
tab 打开/收缩列表 2 将tab改成8个空格
custom-option
ecb-source-path
Ctrl+.+g+窗口缩写(directory,source,method,history)
tab 打开/收缩列表 2 将tab改成8个空格
(setq tab-width 8 indent-tabs-mode t c-basic-offset 8) |
3 使用鼠标滚轮
(mouse-wheel-mode t)
4 TAB and RET auto align and indent
(defun my-indent-or-complete () (interactive) (if (looking-at "\\>") (hippie-expand nil) (indent-for-tab-command))) (add-hook 'c-mode-common-hook (function (lambda () (define-key c-mode-base-map [(tab)] 'my-indent-or-complete) (define-key c-mode-base-map [(control m)] 'align-newline-and-indent) (c-toggle-auto-state)))) |
5 启动不显示tip
(setq ecb-tip-of-the-day nil)
相关阅读 更多 +