From b0784e8a8bf42215897696762f39905b5a392ef0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 26 Jul 2015 16:41:27 +0200 Subject: Emacs: Autoload smart-tabs mode better --- tag-emacs/emacs.d/init.org | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'tag-emacs') 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 -- cgit 1.4.1