[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode e6b9f1b939 016/500: Add menu bar.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode e6b9f1b939 016/500: Add menu bar. |
Date: |
Sat, 29 Jan 2022 08:26:30 -0500 (EST) |
branch: elpa/nix-mode
commit e6b9f1b9394495926d737eec348702bf2200bc1e
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Add menu bar.
---
nix-mode.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/nix-mode.el b/nix-mode.el
index edfd21b366..eeac4af534 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -156,6 +156,13 @@ 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)))
;;;###autoload
(define-derived-mode nix-mode prog-mode "Nix"
@@ -206,8 +213,10 @@ The hook `nix-mode-hook' is run when Nix mode is started.
;; Filling of comments.
(setq-local adaptive-fill-mode t)
(setq-local paragraph-start "[ \t]*\\(#+[ \t]*\\)?$")
- (setq-local paragraph-separate paragraph-start))
+ (setq-local paragraph-separate paragraph-start)
+ ;; Local keymp and menu
+ (use-local-map nix-mode-map))
;;;###autoload
(progn
- [nongnu] elpa/nix-mode ccf4c9ad64 164/500: Update URLs to this repository, (continued)
- [nongnu] elpa/nix-mode ccf4c9ad64 164/500: Update URLs to this repository, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode bd7d93998f 163/500: Fix some grammar issues in README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 84996a7804 158/500: Fix checkdoc errors., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 14322f186f 189/500: Use locate-library instead of find-library, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a3eb135716 492/500: nix-flake: Fix miscomparison to avoid repeatedly adding to registry, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2a24b400b6 485/500: chore: Bump install-nix-action to v14.1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ce7996c6e7 476/500: nix-flake: Cosmetics, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3d4f24b2b6 472/500: nix-flake: Allow switching the flake inside nix-flake-dispatch, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5fb9df6f69 497/500: chore(deps): bump cachix/install-nix-action from 14.1 to 16, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 687665a6b0 001/500: Initial commit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e6b9f1b939 016/500: Add menu bar.,
ELPA Syncer <=
- [nongnu] elpa/nix-mode ae68b456f8 022/500: Refactor font lock, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7b47e2b4bc 042/500: Fix formatting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 570d60d460 045/500: Rewrite nix-indent-level-parens with while loop., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8a65262d37 200/500: Remove smartparens feature detection, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode cc23fd6a0e 206/500: Default to indent-relative, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9f4f5d5860 204/500: Checkdoc of elisp, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode be7184ffcd 209/500: use tab-width instead of hardcoded '2', ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5a8b334c75 212/500: Merge pull request #42 from serokell/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b8aed79f89 211/500: No need to indent on = and ; (ruins your day), ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 81680dd7ac 213/500: nix-repl.el: make it work with newer nix repl command, ELPA Syncer, 2022/01/29