我有点困惑,我需要做什么来运行CEDET和欧洲央行在Emacs 24.2.1。
埃马斯威基有以下文本
如何启用与Emacs合并的CEDET工具 在Emacs 23.2中,CEDET被合并到主要的Emacs发行版中。CEDET教程中解释的配置代码不再起作用了。例如,您不能使用(语义负载启用-启用代码-代码-帮助)来启用有用的特性。 TODO:请解释加载CEDET提供的最有用的IDE工具所需的代码 在我的.emacs中,我有一个基本的配置来处理以下内容: (全局模式1) (要求语义/sb)(语义模式1)
发布于 2012-10-03 20:33:30
发布于 2012-10-03 17:57:04
Q1:是和不是: CEDET是捆绑的,但欧洲央行不是。虽然CEDET是捆绑的,但主要的开发仍然发生在Emacs的存储库之外,部分是历史原因,部分是技术原因。
Q2:(semantic-mode 1)和(global-ede-mode 1)应该足够启用CEDET (不需要(require 'semantic/sb))。至于欧洲央行,既然没有捆绑,.
发布于 2015-07-08 12:42:04
Emacs代码浏览器很受欢迎,但我花了几天时间才弄明白如何在我当前的Emacs 24.5.1上设置它,让我感到满意。希望,下面的说明将有助于使它更受欢迎的前进。
步骤1:在Ubuntu上:通过以下方式安装texinfo:
sudo apt-get install texinfo这实际上是安装安装欧洲央行所需的makeinfo。Mac可能已经安装了makeinfo --我不认为我必须在我的Mac上安装文本信息。
第二步:使用ecb安装欧洲央行。在“about emacs”上做一个网络搜索,了解更多关于about的信息。使用ecb的优点是它将自动地将欧洲央行添加到您的emacs加载路径。
顺便说一下,使用el安装欧洲央行似乎需要15分钟左右的时间。耐心点,如果它告诉你它正在运行一个活动的进程,就不要退出emacs。
当el-get完成时,它将显示一个信息:欧洲央行已经成功安装(或类似的东西)。
步骤3:将以下内容添加到emacs init文件( ~/.emacs.d/init.el或~/.emacs -对这两个文件中的任何一个文件进行编辑)
;; start of ecb configuration/customization:
;;
(require 'ecb)
(setq stack-trace-on-error t)
(setq ecb-version-check nil)
(setq ecb-layout-name "left15")
(setq ecb-tip-of-the-day nil)
(setq ecb-primary-secondary-mouse-buttons 'mouse-1--mouse-2)
(setq ecb-source-file-regexps
'((".*" . (("\\(^\\(\\.\\|#\\)\\|\\(~$\\|\\.\\(pyc\\|elc\\|obj\\|o\\|class\\|lib\\|dll\\|a\\|so\\|cache\\)$\\)\\)")
("^\\.\\(emacs\\|gnus\\)$")))))
;;
;; disable global semantic idle scheduler.
;; it doesn't really seem to work all that well in automatically
;; reparsing buffers and it's actually intrusive when i'm typing:
(add-hook 'ecb-activate-hook
'(lambda()
(semantic-mode t)
(ecb-maximize-window-methods)
(setq global-semantic-idle-scheduler-mode nil)
))
(add-hook 'after-save-hook
'(lambda()
(when (bound-and-true-p ecb-minor-mode)
;; this is to get the methods buffer to refresh correctly.
;; semantic idle mode refresh doesn't seem to work all that well.
(run-at-time 1 nil 'semantic-force-refresh)
)
))
(set-face-attribute 'ecb-default-general-face nil
:inherit 'default)
(set-face-attribute 'ecb-default-highlight-face nil
:background "#464646")
(set-face-attribute 'ecb-tag-header-face nil
:background "#464646")
;;
;; end of ecb configuration/customization步骤4:重新启动emacs,在emacs中打开python源文件(作为测试示例),然后键入:M ecb-activate。
如果您在左边有一个“方法列表”窗口,而右边有一个源文件视图,那么它就可以工作了。
https://stackoverflow.com/questions/12711765
复制相似问题