Emacs: Autoload smart-tabs mode better
Alan Pearce alan@alanpearce.co.uk
Sun, 26 Jul 2015 16:41:27 +0200
1 files changed, 9 insertions(+), 6 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-emacs/emacs.d/init.org
@@ -596,14 +596,17 @@ Not related to [[smart-tab][=smart-tab=]], this mode indents with tabs and aligns 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