all repos — nixfiles @ b0784e8a8bf42215897696762f39905b5a392ef0

System and user configuration, managed by nix and home-manager

Emacs: Autoload smart-tabs mode better

Alan Pearce
commit

b0784e8a8bf42215897696762f39905b5a392ef0

parent

3156b8216c426f55fded3c993b80bcf348a197ba

1 file changed, 9 insertions(+), 6 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-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