mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
Remove 'M-.' binding from js-mode and js-ts-mode
* lisp/progmodes/js.el (js-mode-map, js-ts-mode-map): Remove. The global binding must be a lot more useful for most users (https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg01295.html).
This commit is contained in:
parent
f5b2d23fff
commit
9cbf0bb3ee
7
etc/NEWS
7
etc/NEWS
@ -1056,6 +1056,13 @@ additionally traverse the parent directories until a VCS root is found
|
||||
(if any), so that the ignore rules for that repository are used, and
|
||||
the file listing's performance is still optimized.
|
||||
|
||||
** JS Mode
|
||||
The binding 'M-.' has been removed from the major mode keymaps in
|
||||
'js-mode' and 'js-ts-mode', having it default to the global binding
|
||||
which calls 'xref-find-definitions'. If the previous one worked
|
||||
better for you, use 'define-key' in your init script to bind
|
||||
'js-find-symbol' to that combination again.
|
||||
|
||||
|
||||
* Incompatible Lisp Changes in Emacs 30.1
|
||||
|
||||
|
@ -672,15 +672,6 @@ This variable is like `sgml-attribute-offset'."
|
||||
:type 'integer
|
||||
:safe 'integerp)
|
||||
|
||||
;;; Keymap
|
||||
|
||||
(defvar-keymap js-mode-map
|
||||
: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
|
||||
|
Loading…
Reference in New Issue
Block a user