emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Losing minibuffer input


From: Juri Linkov
Subject: Re: Losing minibuffer input
Date: Fri, 21 Nov 2014 01:55:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)

> S-RET is a good idea; I've seen this keybinding used in lots of
> other programs for "insert a newline without executing an action".

It can be added by this patch:

diff --git a/lisp/bindings.el b/lisp/bindings.el
index 789fdf0..658d0c6 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -851,6 +851,7 @@ (let ((map minibuffer-local-map))
   ;; indent-for-tab-command).  The alignment that indent-relative tries to
   ;; do doesn't make much sense here since the prompt messes it up.
   (define-key map "\t"    'self-insert-command)
+  (define-key map [S-return] 'newline)
   (define-key map [C-tab] 'file-cache-minibuffer-complete))
 
 (define-key global-map "\C-u" 'universal-argument)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]