[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bf3129d5821: Use defvar-keymap in lua-ts-mode
From: |
Stefan Kangas |
Subject: |
master bf3129d5821: Use defvar-keymap in lua-ts-mode |
Date: |
Tue, 1 Oct 2024 15:40:32 -0400 (EDT) |
branch: master
commit bf3129d5821bb8804e486bc5d51de04846a31f12
Author: john muhl <jm@pub.pink>
Commit: Stefan Kangas <stefankangas@gmail.com>
Use defvar-keymap in lua-ts-mode
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-map): Replace
'defvar' with 'defvar-keymap'. (Bug#73585)
---
lisp/progmodes/lua-ts-mode.el | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
index 06daadbc1fd..d167215326c 100644
--- a/lisp/progmodes/lua-ts-mode.el
+++ b/lisp/progmodes/lua-ts-mode.el
@@ -720,14 +720,12 @@ Calls REPORT-FN directly."
((buffer-live-p (process-buffer process))))
(with-current-buffer buffer (comint-write-input-ring))))
-(defvar lua-ts-mode-map
- (let ((map (make-sparse-keymap "Lua")))
- (keymap-set map "C-c C-n" 'lua-ts-inferior-lua)
- (keymap-set map "C-c C-c" 'lua-ts-send-buffer)
- (keymap-set map "C-c C-l" 'lua-ts-send-file)
- (keymap-set map "C-c C-r" 'lua-ts-send-region)
- map)
- "Keymap for `lua-ts-mode' buffers.")
+(defvar-keymap lua-ts-mode-map
+ :doc "Keymap for `lua-ts-mode' buffers."
+ "C-c C-n" #'lua-ts-inferior-lua
+ "C-c C-c" #'lua-ts-send-buffer
+ "C-c C-l" #'lua-ts-send-file
+ "C-c C-r" #'lua-ts-send-region)
(easy-menu-define lua-ts-mode-menu lua-ts-mode-map
"Menu bar entry for `lua-ts-mode'."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master bf3129d5821: Use defvar-keymap in lua-ts-mode,
Stefan Kangas <=