Skip to content

Instantly share code, notes, and snippets.

@niitsuma
Created August 16, 2015 17:44
Show Gist options
  • Save niitsuma/85b8472bed9890eb89fa to your computer and use it in GitHub Desktop.
Save niitsuma/85b8472bed9890eb89fa to your computer and use it in GitHub Desktop.
dot.emacs for python develop
(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