ecb 布局配置 (emacs-ecb-cust-layout.el)

; -*- mode: Lisp -*-

;; reference path-to-ecb/ecb-layout-defs.el

(ecb-layout-define "leftright-sa-m" left-right
  "This function creates the following layout:

   --------------------------------------------------------------
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   |  Sources     |                               |             |
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   |--------------|             Edit              |  Methods    |
   |              |                               |             |
   |              |                               |             |
   |  Analyse     |                               |             |
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   --------------------------------------------------------------
   |                                                            |
   |                    Compilation                             |
   |                                                            |
   --------------------------------------------------------------

If you have not set a compilation-window in `ecb-compile-window-height' then
the layout contains no persistent compilation window and the other windows get a
little more place."
  (ecb-set-sources-buffer)
  (ecb-split-ver 0.4)
  (ecb-set-analyse-buffer)
  (select-window (next-window (next-window)))
  (ecb-set-methods-buffer)
  (select-window (previous-window (previous-window (selected-window) 0) 0)))

(when (not (memq 'leftright-sa-m ecb-layout-window-sizes))
  (add-to-list 'ecb-layout-window-sizes
    '("leftright-sa-m"
      (0.17 . 0.3)
      (0.17 . 0.4)
      (0.25 . 0.7)
    )
  )
)

(ecb-layout-define "leftright-da-m" left-right
  "This function creates the following layout:

   --------------------------------------------------------------
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   |  Directories |                               |             |
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   |--------------|             Edit              |  Methods    |
   |              |                               |             |
   |              |                               |             |
   |  Analyse     |                               |             |
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   --------------------------------------------------------------
   |                                                            |
   |                    Compilation                             |
   |                                                            |
   --------------------------------------------------------------

If you have not set a compilation-window in `ecb-compile-window-height' then
the layout contains no persistent compilation window and the other windows get a
little more place."
  (ecb-set-directories-buffer)
  (ecb-split-ver 0.4)
  (ecb-set-analyse-buffer)
  (select-window (next-window (next-window)))
  (ecb-set-methods-buffer)
  (select-window (previous-window (previous-window (selected-window) 0) 0)))

(when (not (memq 'leftright-da-m ecb-layout-window-sizes))
  (add-to-list 'ecb-layout-window-sizes
    '("leftright-da-m"
      (0.17 . 0.4)
      (0.17 . 0.3)
      (0.25 . 0.7)
    )
  )
)
(when (not (memq "leftright-da-m" ecb-show-sources-in-directories-buffer))
  (add-to-list 'ecb-show-sources-in-directories-buffer "leftright-da-m")
)


(ecb-layout-define "leftright-dsa-m" left-right
  "This function creates the following layout:

   --------------------------------------------------------------
   |              |                               |             |
   |  Directories |                               |             |
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   |              |                               |             |
   |--------------|             Edit              |  Methods    |
   |              |                               |             |
   |  Sources     |                               |             |
   |              |                               |             |
   |--------------|                               |             |
   |              |                               |             |
   |  Analyse     |                               |             |
   |              |                               |             |
   --------------------------------------------------------------
   |                                                            |
   |                    Compilation                             |
   |                                                            |
   --------------------------------------------------------------

If you have not set a compilation-window in `ecb-compile-window-height' then
the layout contains no persistent compilation window and the other windows get a
little more place."
  (ecb-set-directories-buffer)
  (ecb-split-ver 0.3)
  (ecb-set-sources-buffer)
  (ecb-split-ver 0.4)
  (ecb-set-analyse-buffer)
  (select-window (next-window (next-window)))
  (ecb-set-methods-buffer)
  (select-window (previous-window (previous-window (selected-window) 0) 0)))

(when (not (memq 'leftright-dsa-m ecb-layout-window-sizes))
  (add-to-list 'ecb-layout-window-sizes
    '("leftright-dsa-m"
      (0.17 . 0.2)
      (0.17 . 0.2)
      (0.17 . 0.4)
      (0.23 . 0.8)
    )
  )
)

(ecb-layout-define "left-speedbar" left
  "This function creates the following layout:

   -------------------------------------------------------
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |   Speedbar   |                 Edit                 |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   |              |                                      |
   -------------------------------------------------------
   |                                                     |
   |                    Compilation                      |
   |                                                     |
   -------------------------------------------------------

If you have not set a compilation-window in `ecb-compile-window-height' then
the layout contains no persistent compilation window and the other windows get a
little more place. "
  (ecb-set-speedbar-buffer)
  (select-window (next-window)))


(when (not (memq 'left-speedbar ecb-layout-window-sizes))
  (add-to-list 'ecb-layout-window-sizes
    '("left-speedbar"
      (0.3 . 0.8)
    )
  )
)



(ecb-layout-define "right-speedbar" right
  "This function creates the following layout:
   -------------------------------------------------------
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                 Edit                |  Speedbar     |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   |                                     |               |
   -------------------------------------------------------
   |                                                     |
   |                    Compilation                      |
   |                                                     |
   -------------------------------------------------------
If you have not set a compilation-window in `ecb-compile-window-height' then
the layout contains no persistent compilation window and the other windows get a
little more place."
  (let ((edit-win (previous-window (selected-window) 0)))
    (ecb-set-speedbar-buffer)
    (select-window edit-win)))

(when (not (memq 'right-speedbar ecb-layout-window-sizes))
  (add-to-list 'ecb-layout-window-sizes
    '("right-speedbar"
      (0.3 . 0.8)
    )
  )
)

(ecb-layout-define "right-m" right
  "This function creates the following layout:

   -------------------------------------------------------
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                 Edit                 |   Methods    |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   |                                      |              |
   -------------------------------------------------------
   |                                                     |
   |                    Compilation                      |
   |                                                     |
   -------------------------------------------------------

If you have not set a compilation-window in `ecb-compile-window-height' then
the layout contains no persistent compilation window and the other windows get a
little more place."
  (ecb-set-methods-buffer)
  (select-window (next-window)))
(when (not (memq 'right-m ecb-layout-window-sizes))
  (add-to-list 'ecb-layout-window-sizes
    '("right-m"
      (0.25 . 0.8)
    )
  )
)


 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值