Skip to content

Commit

Permalink
Use with-eval-after-load
Browse files Browse the repository at this point in the history
  • Loading branch information
philc committed Jan 21, 2015
1 parent 85070e8 commit 7fefb5c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .emacs.d/elisp/clojure-mode-personal.el
Expand Up @@ -163,19 +163,19 @@
'my-cider-eval-and-print-defun-at-point)))

;; Clojure indentation rules
(eval-after-load 'clojure-mode
'(define-clojure-indent
(send-off 1) (cli 1) (go-loop 1) ; Core
(ANY 2) (GET 2) (POST 2) (PUT 2) (PATCH 2) (DELETE 2) (context 2) ; Compojure
(OPTIONS 2)
(select 1) (insert 1) (update 1) (where 1) (set-fields 1) ; Korma
(values 1) (delete 1) (upsert 1) (subselect 1)
(clone-for 1) ; Enlive
(up 1) (down 1) (alter 1) (table 1) (create 1) ; Lobos
(checker 1) ; Midje
(with-eligible-values 1) (when-eligible 1) (check 4) ; Personal
(url-of-form 1) ; Personal
))
(with-eval-after-load "clojure-mode"
(define-clojure-indent
(send-off 1) (cli 1) (go-loop 1) ; Core
(ANY 2) (GET 2) (POST 2) (PUT 2) (PATCH 2) (DELETE 2) (context 2) ; Compojure
(OPTIONS 2)
(select 1) (insert 1) (update 1) (where 1) (set-fields 1) ; Korma
(values 1) (delete 1) (upsert 1) (subselect 1)
(clone-for 1) ; Enlive
(up 1) (down 1) (alter 1) (table 1) (create 1) ; Lobos
(checker 1) ; Midje
(with-eligible-values 1) (when-eligible 1) (check 4) ; Personal
(url-of-form 1) ; Personal
))

(defun lisp-indent-line-single-semicolon-fix (&optional whole-exp)
"Identical to the built-in function lisp-indent-line,
Expand Down

0 comments on commit 7fefb5c

Please sign in to comment.