This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-29
Channels
- # aws (3)
- # beginners (160)
- # boot (2)
- # bristol-clojurians (3)
- # cider (62)
- # cljs-dev (77)
- # cljsrn (15)
- # clojure (147)
- # clojure-brasil (10)
- # clojure-dusseldorf (2)
- # clojure-gamedev (1)
- # clojure-italy (128)
- # clojure-russia (1)
- # clojure-spec (19)
- # clojure-uk (34)
- # clojurescript (408)
- # code-reviews (2)
- # component (1)
- # core-async (56)
- # cursive (1)
- # datascript (1)
- # datomic (81)
- # emacs (11)
- # fulcro (39)
- # java (16)
- # jobs (3)
- # lein-figwheel (2)
- # leiningen (6)
- # lumo (89)
- # off-topic (11)
- # om (2)
- # om-next (1)
- # onyx (17)
- # parinfer (4)
- # pedestal (3)
- # perun (1)
- # quil (3)
- # re-frame (19)
- # reagent (8)
- # reitit (5)
- # remote-jobs (5)
- # shadow-cljs (145)
- # spacemacs (1)
- # sql (7)
- # test-check (15)
- # uncomplicate (1)
- # unrepl (122)
- # vim (2)
- # yada (4)
@theeternalpulse For Emacs Lisp - you can alter the indentation of macros using declare
. Sometimes the indentation gets messed up when you haven’t evaluated some external library, before you start writing code using it, and the respective declare
s are not used.
I think I got it. I'm just having a problem loading the cask file dependencies in cider. The make test works but I can't require the buttercup library from the .cask folder.
Though I think I got it,. I have to open the project with cider emacs to get the load paths connected -_-. Oh emacs lisp lol
also there is https://github.com/flycheck/flycheck-cask which seems to bring in the appropriate references from the .cask folder that you can use when developing. Going to try this later today
at some point recently, rainbow-identifiers stopped working for me in clojure buffers. It continues to work in other buffers that derive from prog-mode
, just not anything clojure related.
Anyone have any ideas on how to start debugging this?
My config: https://github.com/tanzoniteblack/dotemacs/blob/master/init.el#L1211
@tanzoniteblack don't you have to specify the hook, my config for clojure mode is
(use-package cider
:ensure t
:init (add-hook 'cider-mode-hook
(lambda ()
(paredit-mode)
(eldoc-mode t)
(rainbow-delimiters-mode)))
:config (setq cider-repl-history-file "~/.emacs.d/cider-history"
cider-repl-wrap-history t)
:bind (:map cider-mode-map
("C-c C-b" . cider-eval-buffer)
("C-c d" . cider-print-docstring)))
(use-package clojure-mode
;; :init (add-hook 'clojurescript-mode-hook
;; (lambda () (inf-clojure-minor-mode)))
:ensure t
:init
(add-hook 'clojure-mode-hook
(lambda ()
(paredit-mode)
(eldoc-mode t)
(rainbow-delimiters-mode)
(flycheck-mode 1)))
:config (define-clojure-indent
(fdef '(1))
(do-at '(1 (2)))))
tough I probably should not be firing hooks there but rather (not in my config)
(use-package rainbow-delimiters
:ensure t
:mode (("\\.clj'" . rainbow-delimiters-mode)))
when I run describe-mode
in a clojure buffer, emacs indicates that rainbow-identifiers-mode
is running, so the hook seems to be working to turn on the mode. Manually turning the mode off and then on again doesn't appear to have any effect either.
ok...now that I'm asking about it, it's working again
so I'm just going to go give up on my day now, because clearly either me or my computer has gone insane