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

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

[nongnu] elpa/nix-mode c52795de7d 392/500: Add completion-at-point to ni


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode c52795de7d 392/500: Add completion-at-point to nix-repl-mode-map
Date: Sat, 29 Jan 2022 08:27:47 -0500 (EST)

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

    Add completion-at-point to nix-repl-mode-map
    
    This makes it a little easier to get to the completion. Taken from the
    setting in shell-mode-map.
---
 nix-repl.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/nix-repl.el b/nix-repl.el
index 82913a250d..b525091b01 100644
--- a/nix-repl.el
+++ b/nix-repl.el
@@ -29,6 +29,11 @@
   "Time in seconds to wait for completion output before giving up."
   :type 'float)
 
+(defvar nix-repl-mode-map
+  (let ((map (make-sparse-keymap)))
+    (define-key map "\t" 'completion-at-point)
+    map))
+
 (define-derived-mode nix-repl-mode comint-mode "Nix-REPL"
   "Interactive prompt for Nix."
   (setq-local comint-prompt-regexp nix-prompt-regexp)



reply via email to

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