diff options
author | Alan Pearce | 2015-08-25 16:56:05 +0200 |
---|---|---|
committer | Alan Pearce | 2015-08-25 16:56:05 +0200 |
commit | b5d24a676866ad93be7ea6175cd29bf155c85ca4 (patch) | |
tree | 485b43077634143aef92fc664f354fde49246b8e | |
parent | c5c3885174ae941511592906dc75d5b139f92577 (diff) | |
download | nixfiles-b5d24a676866ad93be7ea6175cd29bf155c85ca4.tar.lz nixfiles-b5d24a676866ad93be7ea6175cd29bf155c85ca4.tar.zst nixfiles-b5d24a676866ad93be7ea6175cd29bf155c85ca4.zip |
Emacs: Install and use dtrt-indent-mode
-rw-r--r-- | tag-emacs/emacs.d/Cask | 1 | ||||
-rw-r--r-- | tag-emacs/emacs.d/init.org | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask index d6dbad28..b55830c8 100644 --- a/tag-emacs/emacs.d/Cask +++ b/tag-emacs/emacs.d/Cask @@ -33,6 +33,7 @@ (depends-on "dired-subtree") (depends-on "discover") (depends-on "discover-my-major") +(depends-on "dtrt-indent") (depends-on "elisp-slime-nav") (depends-on "emmet-mode") (depends-on "epl") diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index cd4b36d3..8b2bc8b7 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -615,6 +615,20 @@ with spaces. Perfect! (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 |