Table of Contents



python

python-mode






helm-etags-plus

swoop

imenu




anzu

iedit

Ropemacs




jedi

ac-python

quickrun




flymake




Environment

Special Thanks





coursera  Python 2.


Computational Investing, Part I | coursera

Survey of Music Technology | coursera


 Emacs , .

#


python.el , python-mode.el  Python .

python#


Emacs .

python-mode#


Python .


emacsmirror/python-mode

python-mode.el in Launchpad

Guide - Software - Emacs - python-mode


.


python-mode 便 - 

#


4.

(add-hook 'python-mode-hook
                   '(lambda ()
                        (setq indent-tabs-mode nil)
                        (setq indent-level 4)
                        (setq python-indent 4)
                        (setq tab-width 4)))

#

helm-etags-plus#


. ctags . , ctags  Emacs ,  helm-etags-plus 使.


jixiuf/helm-etags-plus


(require 'helm-etags+)

$ ctags -o TAGS *.py

swoop#


ctags , .

, swoop .


Emacs  Swoop.el . - Web 


(require 'swoop)
(global-set-key (kbd "M-o")   'swoop)
(global-set-key (kbd "C-M-o") 'swoop-multi)
;; (global-set-key (kbd "M-o")   'swoop-pcre-regexp)
(global-set-key (kbd "C-S-o") 'swoop-back-to-last-position)

(define-key isearch-mode-map (kbd "M-o") 'swoop-from-isearch)
(define-key swoop-map (kbd "M-o") 'swoop-multi-from-swoop)

;; サイズ変更禁止
(setq swoop-font-size-change: nil)

imenu#


. , .


Emacs  Python  - Qiita


(semantic-mode 1)
(add-hook 'python-mode-hook
  (lambda ()
    (setq imenu-create-index-function 'python-imenu-create-index)))

#


 Elisp .

:


What refactoring tools do you use for Python? - Stack Overflow

anzu#


.


syohex/emacs-anzu

iedit#


C-;.


EmacsWiki: Iedit

Ropemacs#


Python .


ropemacs, rope in emacs

#

jedi#


Python  () .


emacs-jedi  install - Qiita

ac-python#


auto-complete  python .

 (require 'ac-python)
 (add-to-list 'ac-modes 'python-2-mode)

quickrun#


quickrun , python  Emacs .


https://github.com/syohex/emacs-quickrun


 version 3, Emacs 2, .

(quickrun-add-command "python"
        '((:command . "python2"))
        :override t)

#

flymake#


flymake .  pyflakes .

   $ sudo pip install pyflakes

Emacswiki .


EmacsWiki: Python Programming In Emacs


(when (load "flymake" t)
  (defun flymake-pyflakes-init ()
     ; Make sure it's not a remote buffer or flymake would not work
     (when (not (subsetp (list (current-buffer)) (tramp-list-remote-buffers)))
      (let* ((temp-file (flymake-init-create-temp-buffer-copy
                         'flymake-create-temp-inplace))
             (local-file (file-relative-name
                          temp-file
                          (file-name-directory buffer-file-name))))
        (list "pyflakes" (list local-file)))))
  (add-to-list 'flymake-allowed-file-name-masks
               '("\\.py\\'" flymake-pyflakes-init)))

#

Environment#



ArchLinux

Emacs 24.4

Special Thanks#



EmacsWiki: Python Programming In Emacs

Emacs as a Python IDE - Jessica Hamrick

Configuring Emacs as a Python IDE - Pedro Kroger

Emacs  Python  IDE  - uchikoshi22s blog

emacs  python  -  

Emacs  Python 

Vim  Python  2 - Λ Lisues blog

gabrielelanaro/emacs-for-python