Explorar el Código

~/.emacs.d: Fix indentation for compojure

Haven't used it in a long time, but this has been in my emacs config for
ages.  So let's add it to clean up git status.
Lu Stadler %!s(int64=7) %!d(string=hace) años
padre
commit
6734925b96
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      .emacs.d/init.el

+ 7 - 0
.emacs.d/init.el

@ -22,6 +22,13 @@
22 22
(add-to-list 'auto-mode-alist '("\\.edn\\'" . clojure-mode))
23 23
24 24
(add-hook 'clojure-mode-hook 'paredit-mode)
25
(add-hook 'clojure-mode-hook
26
          '(lambda ()
27
             (put-clojure-indent 'GET '(:defn))
28
             (put-clojure-indent 'POST '(:defn))
29
             (put-clojure-indent 'PUT '(:defn))
30
             (put-clojure-indent 'DELETE '(:defn))
31
             (put-clojure-indent 'ANY '(:defn))))
25 32
26 33
(defun simple-writing-mode (&optional enable)
27 34
  "Change the current buffer to allow for simple writing of long texts"