From 9ae6f7f1be4b480506eb39c1c1c298efa7fe6e00 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 31 Dec 2017 01:14:56 -0800 Subject: Enable subword mode in js2 mode --- emacs/.emacs.d/init.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 2a0d2c6..fab9b4d 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1189,6 +1189,13 @@ Computing Environment". (setq js2-strict-trailing-comma-warning nil) #+END_SRC + Enable ~subword-mode~ because a lot of JavaScript identifiers look + either like =someIdentifier= or =SomeClassName=. + + #+BEGIN_SRC emacs-lisp + (add-hook 'js2-mode-hook 'subword-mode) + #+END_SRC + * Applications - [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it -- cgit v1.2.3-54-g00ecf