Sfoglia il codice sorgente

Do not reindent when C-m in python-mode

pull/15/head
10sr 7 anni fa
parent
commit
41c057f0d7
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      emacs.el

+ 3
- 0
emacs.el Vedi File

@@ -779,6 +779,9 @@ found, otherwise returns nil."
'("python3" . python-mode))
(add-to-list 'interpreter-mode-alist
'("python2" . python-mode))
(with-eval-after-load 'python
(defvar python-mode-map (make-sparse-keymap))
(define-key python-mode-map (kbd "C-m") 'newline-and-indent))

;; http://fukuyama.co/foreign-regexp
'(and (safe-require-or-eval 'foreign-regexp)


Caricamento…
Annulla
Salva