瀏覽代碼

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)


Loading…
取消
儲存