Fork me on GitHub
#emacs
<
2018-04-26
>
artenator00:04:31

Just in case anyone else runs into this.. i fixed it by replacing (require ’clj-refactor) with (clj-refactor-mode t) in my .emacs config

eggsyntax14:04:50

OK, I give up on getting non-emacs folks to use ;; for line comments. I'm told that Cursive doesn't have a way to configure that. Anyone found a way to tell emacs not to reindent single-`;` line comments in clj/s?

bozhidar14:04:40

@eggsyntax ; in classic Lisp tradition means inline comment, that’s why Emacs re-indents those. People should be using ;; (or more ;) for line comments.

bozhidar14:04:04

Right now there’s no easy way to change this and the behaviour in Cursive is wrong as far as I’m concerned.

eggsyntax14:04:34

I know. I agree entirely that Cursive is wrong here (sorry @cfleming). But I work with a number of Cursive users, and I'm tired of nagging them to remember to do it.

bozhidar14:04:31

Got it. Well, it seems to me that ideally this should be fixed in Cursive.

eggsyntax15:04:29

Well, I've filed a Cursive issue requesting at least a config option to use ;; for line comments. In the meantime I'll keep poking around for workarounds. My best guess at this point is that I'd have to write my own comment-indent-function. Here's the issue, in case anyone has anything they want to add: https://github.com/cursive-ide/cursive/issues/1983

bozhidar17:04:37

Yeah, I think currently we just use the one from lisp-mode. Might be good to move it to clojure-mode, so at least we can make it configurable.

bozhidar17:04:56

If you want to take a stab at this - I can provide you with some tactical support.

👍 4
artenator22:04:10

has anyone gotten expand-region to work in emacs 26.1?

richiardiandrea22:04:15

@soosool12 I think it works for me on 26.0.91

richiardiandrea22:04:28

but exactly is not working?

artenator22:04:06

seems to be expanding one delimiter more than it should. i.e. (let [asdf asdf] )

artenator22:04:43

that is what it highlights if my cursor is on the first opening square bracket @richiardiandrea

artenator22:04:31

hmm ok maybe i will consider downgrading. thanks for checking for me!