all repos — archive/dotfiles @ b5d24a676866ad93be7ea6175cd29bf155c85ca4

Superseded by nixfiles

Emacs: Install and use dtrt-indent-mode

Alan Pearce
commit

b5d24a676866ad93be7ea6175cd29bf155c85ca4

parent

c5c3885174ae941511592906dc75d5b139f92577

1 file changed, 14 insertions(+), 0 deletions(-)

changed files
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -615,6 +615,20 @@ (add-hook 'php-mode-hook (lambda ()
(smart-tabs-mode indent-tabs-mode))))) #+END_SRC +** dtrt-indent-mode + +Sometimes people use different indentation settings. [[https://github.com/jscheid/dtrt-indent][dtrt-indent]] +guesses the correct settings for me. + +#+BEGIN_SRC emacs-lisp + (req-package dtrt-indent + :init (dtrt-indent-mode 1) + :config (progn + (defadvice dtrt-indent-try-set-offset (after toggle-smart-tabs activate) + (message "setting smart-tabs-mode") + (smart-tabs-mode (or indent-tabs-mode -1))))) +#+END_SRC + * Security ** password-store