文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Emacs使用ecb

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个空格  
(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)

 

相关阅读 更多 +
排行榜 更多 +
机械火车修理

机械火车修理

休闲益智 下载
坚持到顶

坚持到顶

休闲益智 下载
掷球冠军

掷球冠军

休闲益智 下载