From: Mark Wooding Date: Sat, 5 Aug 2017 23:51:30 +0000 (+0100) Subject: el/dot-emacs.el (mdw-misc-mode-config): Don't override RET in comint modes. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/4a7ce1ee8ba96179c6a9043ceaecdc59a1902559?ds=inline el/dot-emacs.el (mdw-misc-mode-config): Don't override RET in comint modes. It's needed for entering input lines. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 5d64501..37bd96a 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -1094,7 +1094,7 @@ (defun mdw-misc-mode-config () (and mdw-auto-indent (cond ((eq major-mode 'lisp-mode) (local-set-key "\C-m" 'mdw-indent-newline-and-indent)) - ((derived-mode-p 'slime-repl-mode 'asm-mode) + ((derived-mode-p 'slime-repl-mode 'asm-mode 'comint-mode) nil) (t (local-set-key "\C-m" 'newline-and-indent))))