Skip to content

Instantly share code, notes, and snippets.

@danlamanna
Created September 9, 2014 14:38
Show Gist options
  • Select an option

  • Save danlamanna/343a964e20543fd2b723 to your computer and use it in GitHub Desktop.

Select an option

Save danlamanna/343a964e20543fd2b723 to your computer and use it in GitHub Desktop.
(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