From: Stefan Bund Date: Tue, 25 Apr 2017 16:26:31 +0000 (+0200) Subject: add dtrt-indent module X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=eb9367d25c9050025a2f9905a69c88b6f76b7f7e;p=emacs-init.git add dtrt-indent module --- diff --git a/.gitmodules b/.gitmodules index da9b4f2..feca0b8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -24,3 +24,6 @@ url = git://g0dil.de/emacsstuff.git [submodule "with-editor"] path = with-editor url = https://github.com/magit/with-editor +[submodule "dtrt-indent"] + path = dtrt-indent + url = https://github.com/jscheid/dtrt-indent.git diff --git a/dtrt-indent b/dtrt-indent new file mode 160000 index 0000000..a54871b --- /dev/null +++ b/dtrt-indent @@ -0,0 +1 @@ +Subproject commit a54871bedadabede505b3913ee1039f5ab36cad2 diff --git a/emacs-custom.el b/emacs-custom.el index 9d0e2da..8e8e465 100644 --- a/emacs-custom.el +++ b/emacs-custom.el @@ -31,6 +31,7 @@ (emacs-lisp-mode 99 lisp-interaction-mode w change-log-mode t texinfo-mode t c-mode 99 c++-mode 99 java-mode 99 jde-mode 99 html-mode 99 html-helper-mode 99 cperl-mode 99 perl-mode 99 mail-mode t message-mode t cmail-mail-mode t tcl-mode 99 ruby-mode 99))) '(diff-mode-hook (quote ((lambda nil (diff-auto-refine-mode 1))))) '(diff-switches "-u") + '(dtrt-indent-mode t nil (dtrt-indent)) '(edit-server-done-hook nil) '(edit-server-new-frame nil) '(fill-column 98) diff --git a/setup/dtrt-indent.el b/setup/dtrt-indent.el new file mode 100644 index 0000000..1487642 --- /dev/null +++ b/setup/dtrt-indent.el @@ -0,0 +1,9 @@ +(add-to-list 'load-path (concat (file-name-directory + (directory-file-name + (file-name-directory + (or load-file-name + (when (boundp 'bytecomp-filename) bytecomp-filename) + buffer-file-name)))) + "dtrt-indent")) + +(require 'dtrt-indent)