diff --git a/lisp/init-javascript.el b/lisp/init-javascript.el index ee5dbc8d8d..952dc5b207 100644 --- a/lisp/init-javascript.el +++ b/lisp/init-javascript.el @@ -60,9 +60,9 @@ (let ((base-mode (if (fboundp 'js-base-mode) 'js-base-mode 'js-mode))) (with-eval-after-load 'js (add-hook (derived-mode-hook-name base-mode) 'sanityinc/enable-xref-js2) - (define-key 'js-mode-map (kbd "M-.") nil))) + (define-key js-mode-map (kbd "M-.") nil))) (with-eval-after-load 'js2-mode - (define-key js2-mode-map (kbd "M-.") nil)) + (define-key js2-mode-map (kbd "M-.") nil)))