在Emacs中的ECB布局设置期间出错

时间:2016-02-03 18:37:55

标签: emacs ide elisp emacs24 emacs-ecb

使用Emacs 24.3.1附带的CEDET和Melpa中的ECB,我收到以下消息 - ecb-activate:

All requirements for ECB 2.40 fulfilled - Enjoy it!
The ECB is now deactivated.
ecb-clean-up-after-activation-failure: 
ECB 2.40: Errors during the layout setup of ECB.
(error-type: void-function, error-data: (ecb-layout-function-emcas))

我在.emacs文件中设置的ECB是

(require 'ecb)
(require 'ecb-autoloads)
;(setq ecb-examples-bufferinfo-buffer-name nil)
(setq ecb-layout-name "emcas")
(setq ecb-show-sources-in-directories-buffer 'always)
(setq ecb-compile-window-height 12)

                    ; ecb keybinds
(global-set-key (kbd "C-x C-;") 'ecb-activate)
(global-set-key (kbd "C-x C-'") 'ecb-deactivate)

(global-set-key (kbd "C-x C-:") 'ecb-show-ecb-windows)
(global-set-key (kbd "C-x C->") 'ecb-hide-ecb-windows)
;;; quick navigation between ecb windows
(global-set-key (kbd "C-)") 'ecb-goto-window-edit1)
(global-set-key (kbd "C-!") 'ecb-goto-window-directories)
(global-set-key (kbd "C-@") 'ecb-goto-window-sources)
(global-set-key (kbd "C-#") 'ecb-goto-window-methods)
(global-set-key (kbd "C-$") 'ecb-goto-window-compilation)

1 个答案:

答案 0 :(得分:1)

我认为你的问题出在这一行:

(setq ecb-layout-name "emcas")

根据消息来源:

Currently available layouts:
+ Left layouts:   left1 left2 left3 left4 left5 left6 left7 left8 left9 left10 left11 left12   left13 left14 left15
+ Right layouts:   right1
+ Top layouts:   top1 top2
+ Left-right layouts:   leftright1 leftright2 leftright3

所以似乎emcas不是有效选项,在错误消息中暗示:(error-type: void-function, error-data: (ecb-layout-function-emcas))注意结尾是emcas