emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/flymake-refactor-cleaner-for-emacs-26 ef67227 29/3


From: João Távora
Subject: [Emacs-diffs] scratch/flymake-refactor-cleaner-for-emacs-26 ef67227 29/39: Explicitly add a(n empty) keymap for Flymake
Date: Mon, 2 Oct 2017 20:12:25 -0400 (EDT)

branch: scratch/flymake-refactor-cleaner-for-emacs-26
commit ef67227ab2540b6b2ac5bf5645333f8461208ed2
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 3bd60e6..6572ad6 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -630,9 +630,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]