2011-12-05 20 views
3

私はこのチュートリアルに従って、pythonのemacs環境を設定しました。pythonのemacs環境を設定するmac os x

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

私は、Emacsや構文の強調表示のためのpythonモードを取得することができるが、私は例えば、私は、コマンドが定義されていないことを得るdocumentiationためのコマンドCC dを ロープとropemacsを使用しようとすると

ロープとロープマックは簡単インストールでインストールし、私の.emacsファイルは次のようになります Am'I something missing?

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

答えて

0

あなたはEmacsがパッケージを見つけることができるように、ロードパスにディレクトリあなたropeemacsを追加し、

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

正直に言うと、私はロープをemacsを考えていないため、これらのコマンドをロードする必要がありますそれは私にとって便利なことですが、emacsの起動がかなり遅くなりますが、その利点はあまり明らかではありません。私が問題を調べたい時、私は単に行くだけです。

関連する問題