aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2017-12-31 01:14:56 -0800
committerGravatar Tom Willemse2017-12-31 01:14:56 -0800
commit9ae6f7f1be4b480506eb39c1c1c298efa7fe6e00 (patch)
treef10cfd65eb594dd078e855d56ddea53d01062ac3 /emacs
parente45c08497afd7271f73d60c2872397a460c81519 (diff)
downloadnew-dotfiles-9ae6f7f1be4b480506eb39c1c1c298efa7fe6e00.tar.gz
new-dotfiles-9ae6f7f1be4b480506eb39c1c1c298efa7fe6e00.zip
Enable subword mode in js2 mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org7
1 files changed, 7 insertions, 0 deletions
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