Fork me on GitHub
#emacs
<
2018-05-15
>
bozhidar07:05:30

Implementing something like an arity check with CIDER shouldn’t be complex as well, as the information about the supported arities is already present from eldoc.

ghadi17:05:21

Hi y'all, I'm dumb at emacs. How do I control indentation when I hit return after an s/fdef ?

dpsutton17:05:47

@ghadi what are you trying to do? hitting newline will run some formatting on your last line so if you're trying to prevent that there are other ways

ghadi17:05:06

I am trying to provide my team with common config snippets for Emacs and Vim

theeternalpulse17:05:14

I've started to use evil-cleverparens

dpsutton17:05:43

ok then i would check out the link to clojure-mode above

mpenet17:05:39

Binding RET to newline-and-indent is also a good idea imo

mpenet17:05:32

Maybe cider does that out of the box, not sure

theeternalpulse17:05:45

I have a question, I'm not sure if this is related to the layer I'm using or emacs in general, but I have a react layer, and I notice when I make some changes to the file markup in certain places it unhighlights and throws off tabbing until I manually load the layer again

ag18:05:11

there's #spacemacs channel, probably better to ask Spacemacs related questions there

ag18:05:02

I don't use React layer but if can guess it's probably emmet trying to reindent things. This is what it says in the readme > By default, inserted markup will be indented with indent-region, according to the buffer's mode. To disable this, do:

(add-hook 'emmet-mode-hook (lambda () (setq emmet-indent-after-insert nil)))

dpsutton17:05:55

i think the newline function does this be default: >

If `electric-indent-mode' is enabled, this indents the final new line
that it adds, and reindents the preceding line.  To just insert
a newline, use \\[electric-indent-just-newline].

dpsutton17:05:20

(combined with electric-indent-mode