summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/js.el3
-rw-r--r--lisp/progmodes/python.el5
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 50674a1c039..6d4f7d4f84e 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -665,6 +665,9 @@ This variable is like `sgml-attribute-offset'."
:doc "Keymap for `js-mode'."
"M-." #'js-find-symbol)
+(defvar js-ts-mode-map (copy-keymap js-mode-map)
+ "Keymap used in `js-ts-mode'.")
+
;;; Syntax table and parsing
(defvar js-mode-syntax-table
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d38d0292775..c9a69a924e0 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -396,6 +396,9 @@ instead."
map)
"Keymap for `python-mode'.")
+(defvar python-ts-mode-map (copy-keymap python-mode-map)
+ "Keymap for `(copy-keymap python-mode-map)'.")
+
;;; Python specialized rx
@@ -6597,7 +6600,7 @@ implementations: `python-mode' and `python-ts-mode'."
(define-derived-mode python-ts-mode python-base-mode "Python"
"Major mode for editing Python files, using tree-sitter library.
-\\{python-mode-map}"
+\\{python-ts-mode-map}"
(when (treesit-ready-p 'python)
(treesit-parser-create 'python)
(setq-local treesit-font-lock-feature-list