summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tag-emacs/emacs.d/init.org15
1 files changed, 9 insertions, 6 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 1ee23b9..14fda85 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -596,14 +596,17 @@ Not related to [[smart-tab][=smart-tab=]], this mode indents with tabs and align
 with spaces.  Perfect!
 
 #+BEGIN_SRC emacs-lisp
-(req-package smart-tabs-mode
-  :commands (smart-tabs-mode
-             smart-tabs-mode-enable
-             smart-tabs-advice)
-  :config (progn
+  (req-package smart-tabs-mode
+    :commands (smart-tabs-mode
+               smart-tabs-mode-enable
+               smart-tabs-advice)
+    :config (progn
+              (smart-tabs-insinuate 'c 'javascript 'cperl 'python))
+    :init (progn
             (add-hook 'php-mode-hook (lambda ()
                                        (smart-tabs-mode indent-tabs-mode)))
-            (smart-tabs-insinuate 'c 'javascript 'cperl 'python)))
+            (add-hook 'js2-mode-hook (lambda ()
+                                       (smart-tabs-mode indent-tabs-mode)))))
 #+END_SRC
 
 * Security