Configure python-mode with elpy and autopep8
This commit is contained in:
parent
0fa85533c8
commit
ac2882e269
@ -23,6 +23,7 @@
|
|||||||
'(company
|
'(company
|
||||||
company-c-headers
|
company-c-headers
|
||||||
dockerfile-mode
|
dockerfile-mode
|
||||||
|
elpy
|
||||||
fic-mode
|
fic-mode
|
||||||
function-args
|
function-args
|
||||||
flycheck
|
flycheck
|
||||||
@ -32,6 +33,7 @@
|
|||||||
highlight-numbers
|
highlight-numbers
|
||||||
highlight-symbol
|
highlight-symbol
|
||||||
plantuml-mode
|
plantuml-mode
|
||||||
|
py-autopep8
|
||||||
rust-mode
|
rust-mode
|
||||||
stickyfunc-enhance
|
stickyfunc-enhance
|
||||||
swiper
|
swiper
|
||||||
@ -110,6 +112,22 @@
|
|||||||
(use-package dockerfile-mode
|
(use-package dockerfile-mode
|
||||||
:defer t)
|
:defer t)
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; Enable elpy.
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(use-package elpy
|
||||||
|
:hook (python-mode . elpy-mode)
|
||||||
|
:config
|
||||||
|
(unbind-key "C-c C-f" python-mode-map)
|
||||||
|
(unbind-key "C-c C-f" elpy-mode-map)
|
||||||
|
(setq python-shell-interpreter "ipython"
|
||||||
|
python-shell-interpreter-args "-i --simple-prompt"))
|
||||||
|
|
||||||
|
(use-package py-autopep8
|
||||||
|
;; Note that this package require autopep8 to be installed.
|
||||||
|
:bind (("C-c C-f" . py-autopep8-buffer)))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; FIC mode.
|
;; FIC mode.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user