branch: elpa/typst-ts-mode
commit 3394ec08dc4fca78db37199af29ec3528e18edd1
Author: Meow King <mr.meowk...@anche.no>
Commit: Meow King <mr.meowk...@anche.no>

    chore
---
 typst-ts-mode.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/typst-ts-mode.el b/typst-ts-mode.el
index 2dc59b9b21..f386fbc509 100644
--- a/typst-ts-mode.el
+++ b/typst-ts-mode.el
@@ -613,6 +613,11 @@ FILE: file path for the result compile file."
   "M-<up>" #'typst-ts-mode-heading-up
   "M-<return>" #'typst-ts-mode-meta-return
   
+  ;; don't bind <return>
+  ;; Binding a command to "<return>" is generally a bug.
+  ;; Emacs will first look for a binding for `return` and if it finds one
+  ;; it'll use it in preference to a binding for `RET`, regardless of the
+  ;; relative precedence of the keymaps involved.
   "TAB" #'typst-ts-mode-cycle
   "RET" #'typst-ts-mode-return
   "C-c '" #'typst-ts-edit-indirect)

Reply via email to