diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2020-08-20 16:41:50 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2020-08-30 21:12:33 +0200 |
commit | 886ba068c82dcf5e0e2e1244bf99841d4ff5690c (patch) | |
tree | 1c0e30adc54f570e8a7ab394d04a5cdff59ddd0f /lisp/progmodes/compile.el | |
parent | 6593d73928da6c9fb1ccc57930566ddd2a37c737 (diff) | |
download | emacs-886ba068c82dcf5e0e2e1244bf99841d4ff5690c.tar.gz emacs-886ba068c82dcf5e0e2e1244bf99841d4ff5690c.tar.bz2 emacs-886ba068c82dcf5e0e2e1244bf99841d4ff5690c.zip |
Bind 'n' and 'p' in compilation-mode-map
* lisp/progmodes/compile.el (compilation-mode-map): Bind
'(next|previous)-error-no-select' to 'n' and 'p'. (Bug#41844)
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r-- | lisp/progmodes/compile.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 731db0fd6db..0dedde3d019 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -2064,6 +2064,8 @@ Returns the compilation buffer created." (define-key map "\M-p" 'compilation-previous-error) (define-key map "\M-{" 'compilation-previous-file) (define-key map "\M-}" 'compilation-next-file) + (define-key map "n" 'next-error-no-select) + (define-key map "p" 'previous-error-no-select) (define-key map "\t" 'compilation-next-error) (define-key map [backtab] 'compilation-previous-error) (define-key map "g" 'recompile) ; revert |