add dtrt-indent module
Stefan Bund [Tue, 25 Apr 2017 16:26:31 +0000 (18:26 +0200)]
.gitmodules
dtrt-indent [new submodule]
emacs-custom.el
setup/dtrt-indent.el [new file with mode: 0644]

index da9b4f2..feca0b8 100644 (file)
@@ -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 (submodule)
index 0000000..a54871b
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit a54871bedadabede505b3913ee1039f5ab36cad2
index 9d0e2da..8e8e465 100644 (file)
@@ -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 (file)
index 0000000..1487642
--- /dev/null
@@ -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)