настроить среду Python Emacs Mac OS X - PullRequest
3 голосов
/ 05 декабря 2011

Я следовал этому руководству по настройке среды Python Emacs.

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

Я могу получить режим Python для подсветки Emacs и синтаксиса, но когда я пытаюсь использоватьRope и Romamacs, например, команда Cc d для документирования Я получаю, что команда не определена

Rope и Ropemacs, где установлена ​​с легкой установкой, и мой файл .emacs выглядит как Am'I что-то упустил ??

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

1 Ответ

0 голосов
/ 29 июня 2012

вам нужно добавить директорию Ropeemacs в путь загрузки, чтобы EMACS мог найти пакет и загрузить эти команды для васполезно для меня, это сильно замедляет запуск emacs, но выгода не столь очевидна.когда я хочу посмотреть на проблемы, я просто иду ТАК.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...