This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-02
Channels
- # aleph (6)
- # beginners (57)
- # boot (1)
- # cider (27)
- # clara (23)
- # cljs-dev (166)
- # clojure (287)
- # clojure-dev (23)
- # clojure-greece (1)
- # clojure-italy (2)
- # clojure-russia (13)
- # clojure-spec (34)
- # clojure-uk (36)
- # clojurescript (68)
- # core-async (63)
- # core-logic (1)
- # cursive (1)
- # data-science (1)
- # datomic (26)
- # duct (1)
- # emacs (10)
- # figwheel (8)
- # fulcro (2)
- # garden (16)
- # graphql (8)
- # hoplon (20)
- # jobs (2)
- # leiningen (10)
- # off-topic (16)
- # onyx (2)
- # portkey (5)
- # quil (1)
- # re-frame (63)
- # reagent (95)
- # reitit (6)
- # remote-jobs (1)
- # ring (6)
- # rum (1)
- # shadow-cljs (76)
- # spacemacs (26)
- # specter (11)
- # sql (7)
- # unrepl (68)
- # vim (2)
- # yada (2)
@sonnyto https://github.com/clojure-emacs/cider/blob/master/doc/faq.md#will-cider-eventually-support-the-clojure-18-socket-repl
Anyone tried using .dir-local.el
with a load
function, to set indent rules for a project? Like for example:
((clojure-mode
(eval . (load "~/indents.el"))))
and then in indents.el
:
;; list of macros and indentation rules
(define-clojure-indent
(defroutes 'defun)
(GET 2)
(POST 2)
(PUT 2)
(DELETE 2)
(HEAD 2)
(ANY 2)
(OPTIONS 2)
(PATCH 2)
(rfn 2)
(let-routes 1)
(context 2)
(wait-for 'defun))
@fbielejec you're missing a dot and a list
((clojure-mode . ((eval . (load-file "~/indents.el")))))
or just nil for all files
((nil . ((eval . (load-file "~/indents.el")))))
I also thing you mean to use load-file
, cleaner would be adding (provides 'my-clojure-indents) or smth at the end of indents.el and add the file to load-path, and require it.I was also thinking about loading the indents.el
from a remote server, a gist or github repository.
Then the indents would be picked up by anyone modifying the project without any other action.