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

Skip to content

Commit 8c4a8de

Browse files
committed
(py-mode-map): Bind py-mark-def-or-class to C-M-h with a different
spelling so that it doesn't clobber the standard M-BS binding. This should be portable between X/Emacsen.
1 parent 66d010a commit 8c4a8de

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Misc/python-mode.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,9 @@ Currently-active file is at the head of the list.")
461461
;; who cares? XEmacs 20 does the right thing with these too).
462462
(define-key py-mode-map [delete] 'py-electric-delete)
463463
(define-key py-mode-map [backspace] 'py-electric-backspace))
464-
;; marking interesting locations
465-
(define-key py-mode-map "\e\C-h" 'py-mark-def-or-class)
464+
;; Separate M-BS from C-M-h. The former should remain
465+
;; backward-kill-word.
466+
(define-key py-mode-map [(control meta h)] 'py-mark-def-or-class)
466467
(define-key py-mode-map "\C-c\C-k" 'py-mark-block)
467468
;; Miscellaneous
468469
(define-key py-mode-map "\C-c:" 'py-guess-indent-offset)

0 commit comments

Comments
 (0)