Clojurians
#emacs
<
2016-01-22
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

yenda11:01:21

can you have jump to symbol definition in cljs the way it works in clj ? M-. ?

bozhidar13:01:15

as long as there’s an active cljs connection

bozhidar13:01:23

this will work for ClojureScript code

yenda13:01:54

bozhidar: right it works but not for hiccup forms

bozhidar13:01:51

submit a ticket on the issue tracker with some repro steps

bozhidar13:01:01

and we’ll look into it (eventually)

yenda13:01:51

which one ? cider ?

jethroksy14:01:55

@bozhidar: am i right to say that inf-clojure only looks at the existence of "build.boot" or "project.clj" to determine the project root, but does not, based on this, run the appropriate inf-clojure-program

colin.yates14:01:27

hi all (and happy 2016) - running (the excellent) vanilla prelude and when I jump between marks I get a weird animation - any idea what that is and how to turn it off?

colin.yates14:01:04

actually it happens only in clojure files and happens when I jump a page (i.e. ‘C-v’/‘M-v’)

colin.yates15:01:20

scrap that - it happens in other modes as well.

colin.yates15:01:05

just me then :simple_smile:? @bozhidar - any ideas?

jethroksy15:01:15

its a feature

jethroksy15:01:34

it was quite recently added I think

colin.yates15:01:57

hi @jethroksy - any idea what this feature is called so I can disable it

jethroksy15:01:58

let me search what it is

jethroksy15:01:30

not so recently added i guess :smile:

colin.yates15:01:54

that’s the one - thanks

jethroksy15:01:37

you're welcome

colin.yates15:01:35

whilst I (or more appropriate you :-)) are here - I am struggling to get meta mapped to the right Cmd on El Capitan using terminal.app.

colin.yates15:01:54

I tried iterm2 but it does funny things with control (so C-= produces :smiley:.

colin.yates15:01:00

I have control bound to my CapsLock

colin.yates15:01:21

googling produced many hits none of which worked - any suggestions? Running in a gui works fine but you know, terminal rocks

jethroksy15:01:05

haha I run emacs on GUI

jethroksy15:01:14

I think you can do the swap in your emacs config itself

colin.yates15:01:55

yeah, I tried that but it didn’t do anything. All the problems disappear in the GUI, I think I know my answer… :simple_smile:

jethroksy15:01:34

I use my macbook in the office, and the meta isn't that inconvenient

jethroksy15:01:42

i rarely touch it

jethroksy15:01:20

control mapped to caps too

colin.yates15:01:23

I use it all the time, but that is because I haven’t yet got my keymaps in my muscle memory

jethroksy15:01:04

I used to use prelude, but have moved to my own config

jethroksy15:01:17

did steal some awesome bindings like C-x m for eshell

jethroksy15:01:37

a lot of prelude tries to help you avoid using the meta key

jethroksy15:01:05

C-x C-m for M-x

colin.yates15:01:08

loving prelude and helm, rocking my world.

colin.yates15:01:15

oh yeah - forgot about that

jethroksy15:01:11

try to force yourself to use new commands everyday ^^

colin.yates15:01:39

that isn’t the problem, it is remembering the previous day’s ones !!!

jethroksy15:01:04

CIDER has a ton of hidden gems

jethroksy15:01:27

I found it a little heavy, so i'm using inf-clojure

jethroksy15:01:44

but can't seem to get company-mode working with it :confused:

colin.yates15:01:12

yeah, unfortunately emacs for me is still a huge yak, but one I quite enjoying petting from time to time

jethroksy15:01:45

@bozhidar: inf-clojure-completions returns end of file during parsing for me:

~/Code/tob/src/tob $ inf-clojure-completions foo
End of file during parsing

jethroksy15:01:12

I can confirm that the completion command works in the REPL however

jethroksy15:01:16

boot.user=> (complete.core/completions "hi")
("hiccup.compiler" "hiccup.core" "hiccup.def" "hiccup.page" "hiccup.util")

bozhidar15:01:28

@jethroksy: file a ticket :simple_smile:

jethroksy15:01:00

alright. unfortunately my elisp isn't good enough :disappointed:

colin.yates16:01:20

I am trying to apply different font-locks (as inspired from https://github.com/danielsz/.emacs.d#pretty-lambda-and-co but I want to distinguish between defn and defn-. I added entries for defn and it works but it ignores the entries for defn-, I assume because the first regular expression matches.

colin.yates16:01:17

I tried the following regexp to strictly choose defn but it didn’t seem to work (("(\\(defn[^-]\\)[\[[:space:]]”

colin.yates16:01:23

any pointers?

dorab19:01:32

@colin.yates: I don't know much about font-locks, but perhaps the problem is that the regex "defn[^-]" matches "defn " (note the space after the "defn") and so the extra "[:space:]" might be superfluous? Perhaps the regex should be "(defn "?

colin.yates19:01:18

thanks @dorab, I will experiment a bit further.

andrewmelis20:01:49

hi -- i'm moving from clojure to clojurescript (specifically om next) for the first time and my emacs formatting/indentation is pretty janky with this syntax. has anyone else dealt with this, or is it just something with me/my config?