在 Emacs 中设置 ECB 布局时出错

Error during the layout setup of ECB in Emacs

使用 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)

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

(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.