Created
August 16, 2015 17:44
-
-
Save niitsuma/85b8472bed9890eb89fa to your computer and use it in GitHub Desktop.
dot.emacs for python develop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-hook 'python-mode-hook | |
(lambda () | |
(define-key py-mode-map "\C-x\C-e" 'py-execute-statement-python) | |
(define-key py-mode-map "\C-c\C-r" 'py-execute-region) | |
) | |
) | |
(defun python-window () | |
(interactive) | |
(select-window (split-window-horizontally (* 2 (/ (window-width) 3)))) | |
(switch-to-buffer (get-buffer "*Python*"))) | |
(setq py-keep-windows-configuration t) | |
(require 'auto-complete) | |
(require 'auto-complete-config) | |
(ac-config-default) | |
(yas-global-mode t) | |
(require'undo-tree) | |
(when (require 'undo-tree nil t) | |
(global-undo-tree-mode)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment