emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 87993cd 28/39: Explicitly add a(n empty) keymap f


From: João Távora
Subject: [Emacs-diffs] emacs-26 87993cd 28/39: Explicitly add a(n empty) keymap for Flymake
Date: Tue, 3 Oct 2017 10:04:52 -0400 (EDT)

branch: emacs-26
commit 87993cdcc69d3cc21cfe3bf2ed9e0ffbd3cfe5f0
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Explicitly add a(n empty) keymap for Flymake
    
    Too early to decide what will be in it, if anything.  Though "M-n" and
    "M-p" would be great.
    
    * lisp/progmodes/flymake-ui.el (flymake-mode-map): New variable
---
 lisp/progmodes/flymake.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 00bea3f..c628b4e 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -631,9 +631,14 @@ backends."
         (add-hook 'post-command-hook #'start 'append 'local)
       (start))))
 
+(defvar flymake-mode-map
+  (let ((map (make-sparse-keymap)))
+    map)
+  "Keymap for `flymake-mode'.")
+
 ;;;###autoload
 (define-minor-mode flymake-mode nil
-  :group 'flymake :lighter flymake--mode-line-format
+  :group 'flymake :lighter flymake--mode-line-format :keymap flymake-mode-map
   (setq flymake--running-backends nil
         flymake--disabled-backends nil)
   (cond



reply via email to

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