emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/nix-mode 7f69c71f8d 019/500: Fixup mode map.


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 7f69c71f8d 019/500: Fixup mode map.
Date: Sat, 29 Jan 2022 08:26:31 -0500 (EST)

branch: elpa/nix-mode
commit 7f69c71f8d7dc523b7ff662fc19c95b3c60ccf56
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Fixup mode map.
---
 nix-mode.el | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 8ada93a410..2f1ef95c59 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -156,13 +156,14 @@ If a close brace `}' ends an antiquote, the next 
character begins a string."
   (interactive)
   (indent-relative-maybe))
 
-(defvar nix-mode-map nil "Keymap for nix-mode.")
 
-(let ((menuMap (make-sparse-keymap "Nix")))
-  (define-key nix-mode-map [menu-bar] (make-sparse-keymap))
-  (define-key nix-mode-map [menu-bar nix] (cons "Nix" menuMap))
-  (define-key menuMap [about]
-    '("Indent line" . nix-indent-line)))
+(defvar nix-mode-map
+  (let ((map (make-sparse-keymap "Nix")))
+    (define-key nix-mode-map [menu-bar] (make-sparse-keymap))
+    (define-key nix-mode-map [menu-bar nix] (cons "Nix" map))
+    (define-key map [about]
+      '("Indent line" . nix-indent-line)))
+ "Keymap for nix-mode.")
 
 ;;;###autoload
 (define-derived-mode nix-mode prog-mode "Nix"
@@ -216,7 +217,7 @@ The hook `nix-mode-hook' is run when Nix mode is started.
   (setq-local paragraph-start "[ \t]*\\(#+[ \t]*\\)?$")
   (setq-local paragraph-separate paragraph-start)
 
-  ;; Local keymp and menu
+  ;; Local keymap and menu
   (use-local-map nix-mode-map))
 
 ;;;###autoload



reply via email to

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