Function: js-base-mode
js-base-mode is an autoloaded, interactive and byte-compiled function
defined in js.el.gz.
Signature
(js-base-mode)
Documentation
Generic major mode for editing JavaScript.
This mode is intended to be inherited by concrete major modes.
Currently there are js-mode and js-ts-mode.
In addition to any hooks its parent mode prog-mode might have run,
this mode runs the hook js-base-mode-hook, as the final or penultimate
step during initialization.
C-M-q prog-indent-sexp
M-q prog-fill-reindent-defun
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
;;; Main Function
;;;###autoload
(define-derived-mode js-base-mode prog-mode "JavaScript"
"Generic major mode for editing JavaScript.
This mode is intended to be inherited by concrete major modes.
Currently there are `js-mode' and `js-ts-mode'."
:group 'js
nil)