- python.el 설치
- package-install python.el
- python-flymake 설치
- https://github.com/purcell/flymake-python-pyflakes
- emacs 세팅
- (require 'flymake-python-pyflakes)
- (add-hook 'python-mode-hook 'flymake-python-pyflakes-load)
- (setq flymake-python-pyflakes-executable "/usr/local/bin/pyflakes")
- python refactoring
- Pymacs 설치
- pip install -e "git+https://github.com/pinard/Pymacs.git#egg=Pymacs"
- cd src/pymacs
- sudo python setup.py install
- python -c "import Pymacs" 이 에러 없음면 설치 완료
- emacs 에서 package-install pymacs
- rope, ropemacs
- sudo pip install rope
- sudo pip install ropemacs
- cd .emacs.d
- hg https://bitbucket.org/agr/ropemacs
- emacs 설정
- (defun load-ropemacs()
- "Load pymacs and repemacs"
- (interactive)
- (require 'pymacs)
- (pymacs-load "ropemacs" "rope-")
- ;; Automatically save project python buffers before refactoring
- (setq ropemacs-confirm-saving 'nil))
- (add-hook 'python-mode-hook 'load-ropemacs)
- (global-set-key "\C-xpl" 'load-ropemacs)