Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb5540e

Browse files
committed
(py-mode-map): Removed special bindings for C-m and C-j to
py-newline-and-indent. These ought to get picked up by the mapcar that follows; any existing binding to newline-and-indent gets shadowed to py-newline-and-indent. This will break some people who, e.g. bind C-m or C-j to newline but still want these bound to py-newline-and-indent in Python mode. On the other hand, the forced binding pisses off Emacs diehards. So consider this experimental and see if any tall Dutch guys complain :-)
1 parent f8ddb6a commit cb5540e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Misc/python-mode.el

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,6 @@ Currently-active file is at the head of the list.")
483483
;; information
484484
(define-key py-mode-map "\C-c\C-b" 'py-submit-bug-report)
485485
(define-key py-mode-map "\C-c\C-v" 'py-version)
486-
;; py-newline-and-indent mappings
487-
(define-key py-mode-map "\n" 'py-newline-and-indent)
488-
(define-key py-mode-map "\C-m" 'py-newline-and-indent)
489486
;; shadow global bindings for newline-and-indent w/ the py- version.
490487
;; BAW - this is extremely bad form, but I'm not going to change it
491488
;; for now.

0 commit comments

Comments
 (0)