Browse Source

Update py indent style

master
10sr 5 years ago
parent
commit
2c9ff11975
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      emacs.el

+ 2
- 0
emacs.el View File

@@ -1301,6 +1301,8 @@ found, otherwise returns nil."
(with-eval-after-load 'python (with-eval-after-load 'python
(defvar python-mode-map (make-sparse-keymap)) (defvar python-mode-map (make-sparse-keymap))
(define-key python-mode-map (kbd "C-m") 'newline-and-indent)) (define-key python-mode-map (kbd "C-m") 'newline-and-indent))
(set-variable 'py-indent-list-style
'one-level-to-beginning-of-statement)
(set-variable 'pydoc-command (set-variable 'pydoc-command
"python3 -m pydoc") "python3 -m pydoc")




Loading…
Cancel
Save