Created
September 9, 2014 14:38
-
-
Save danlamanna/343a964e20543fd2b723 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (use-package python | |
| :commands python-mode | |
| :config (progn | |
| (setq pylint:epylint-executable "epylint" | |
| python-shell-interpreter "ipython" | |
| python-shell-interpreter-args "-i" | |
| python-shell-buffer-name "Python" | |
| python-shell-prompt-regexp "In \\[[0-9]+\\]: " | |
| python-shell-prompt-block-regexp ":" | |
| python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: ") | |
| ; auto pair | |
| (use-package autopair) | |
| ; adding hooks | |
| (add-hook 'python-mode-hook (lambda () | |
| (unless (tramp-tramp-file-p (buffer-file-name)) | |
| (flycheck-mode)))) | |
| ; hooks | |
| (add-hook 'python-mode-hook 'auto-complete-mode) | |
| (add-hook 'python-mode-hook 'autopair-mode) | |
| (add-hook 'python-mode-hook 'pp:custom-jedi-setup))) | |
| (add-hook 'inferior-python-mode-hook 'auto-complete-mode) | |
| (add-hook 'inferior-python-mode-hook 'autopair-mode) | |
| (add-hook 'inferior-python-mode-hook 'pp:custom-jedi-setup) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment