Переглянути джерело

Do not reindent when C-m in python-mode

pull/15/head
10sr 7 роки тому
джерело
коміт
41c057f0d7
1 змінених файлів з 3 додано та 0 видалено
  1. +3
    -0
      emacs.el

+ 3
- 0
emacs.el Переглянути файл

@@ -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)


Завантаження…
Відмінити
Зберегти