gpt4 book ai didi

python - 设置 python emacs 环境 mac os x

转载 作者:行者123 更新时间:2023-11-28 19:26:56 25 4
gpt4 key购买 nike

我已按照本教程设置 python emacs 环境。

http://www.saltycrane.com/blog/2010/05/my-emacs-python-environment/

我能够为 emacs 和语法突出显示获得 python 模式,但是当我尝试使用rope 和 ropemacs 例如用于文档化的命令 C-c d 我得到命令未定义

rope 和 ropemacs 安装简单,我的 .emacs 文件看起来像我错过了什么吗??

(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (tango-dark))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(add-hook 'find-file-hook 'flymake-find-file-hook)
(provide 'init_python)


(autoload 'pymacs-apply "pymacs")
(autoload 'pymacs-call "pymacs")
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-exec "pymacs" nil t)
(autoload 'pymacs-load "pymacs" nil t)
(eval-after-load "pymacs"
'(add-to-list 'pymacs-load-path ~/.emacs.d/vendor/pymacs-0.24-beta2"))

(pymacs-load "ropemacs" "rope-")
(setq ropemacs-enable-autoimport t)


(add-to-list 'load-path "~/.emacs.d/vendor/auto-complete-1.2")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/vendor/auto-complete-1.2/dict")
(ac-config-default)

最佳答案

您需要将您的 ropeemacs 目录添加到加载路径中,以便 EMACS 可以找到包并为您加载这些命令

(setq load-path (cons "/PATH-OF-ROPEEMACS"      load-path))

老实说,我不认为 rope emacs 对我有用,它大大减慢了 emacs 的启动速度,但好处并不明显。当我想查找问题时,我直接去 SO。

关于python - 设置 python emacs 环境 mac os x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8389120/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com