Fork me on GitHub
#emacs
<
2016-02-21
>
jasonjckn17:02:02

is there a way for emacs eval of clojurescript to actually show me exceptions in a buffer, like how it does with clojure when I write bad code, and do C-x C-e, the error shows up in the repl buffer as oppose to creating a new emacs buffer popup

joelkuiper20:02:25

Does anyone know of a comprehensive set of "pretty symbols" font-lock for Clojure in Emacs (like λ)? simple_smile

benedek21:02:33

I used to really love these but there is a serious problem with them: they mess up indentation

joelkuiper21:02:44

yeah it’s true

benedek21:02:47

nowadays i happily use firacode font instead

joelkuiper21:02:51

but my indentation is already a mess 😛

joelkuiper21:02:03

I use Pragmata Pro, but unfortunately no ligatures in Emacs 😞

benedek21:02:15

which is not that feature rich but does really nice things: like proper arrows for threading macros

joelkuiper21:02:31

how do you get that to work without ligatures though?

benedek21:02:33

i use the 24.5 osx built which has ligatures simple_smile

joelkuiper21:02:40

I should try that!

benedek21:02:50

do, ligatures are really nice

joelkuiper21:02:51

where can I find it simple_smile ?

joelkuiper21:02:19

I think I currently use the railway cat (?)

benedek21:02:20

and i really recommend @malabarba’s articles about prettify symbol on http://endlessparentheses.com/

benedek21:02:38

if you want to add some to some ligatures 😉

benedek21:02:54

uh let me think, i might have brew installed it?!

joelkuiper21:02:40

-> works fine in TextEdit.app as a ligature

joelkuiper21:02:42

not in Emacs 😞

joelkuiper21:02:03

I’m on 24.5.1, Carbon version

benedek21:02:11

yup, you were right all along that should be the railway cat

joelkuiper21:02:23

weird, I’ll check the docs

benedek21:02:36

so I use:

If you're using the latest railwaycat Mac port of Emacs, you can instead use:

(mac-auto-operator-composition-mode)

joelkuiper21:02:46

ah yes (mac-auto-operator-composition-mode) did it

joelkuiper21:02:51

amazing, thanks so much simple_smile

joelkuiper21:02:05

finally get to use some of the Pragmata Pro features

joelkuiper21:02:12

which is an amazing font without ligatures too 😉

benedek21:02:56

no worries! happy to spread the ligatures love 😄

joelkuiper21:02:58

I’ll still use some font lock keywords

joelkuiper21:02:06

just not the fn, defn ones

joelkuiper21:02:19

which mess up indent badly (especially since I use agressive-indent)

benedek21:02:39

in @malabarba articles you can find some workarounds

joelkuiper21:02:59

thanks, I’ll take a look simple_smile

joelkuiper21:02:16

wouldn’t want my colleagues to become /too/ upset with my indentation

joelkuiper21:02:26

which is a general problem with Lisps I’ll admit

joelkuiper21:02:33

not a big problem, but still

benedek21:02:56

haha used to shock my colleagues with pretty symbols… but then it also messes with how clj-refactor finds symbols and other stuff to work on. so that finished my prettify symbols adventures apart from a few small ones with workarounds recommended by @malabarba

joelkuiper21:02:18

clj-refactor doesn’t work in most of our projects due to the namespace redefs

joelkuiper21:02:23

which messes up system somehow

joelkuiper21:02:30

haven’t been bothered to investigate further 😛

benedek21:02:59

wow. would be interesting to see some sample code

benedek21:02:12

if you can file an issue on github

benedek21:02:30

why do you need to do that tho? (just out of curiosity)

joelkuiper21:02:06

good question, I think a colleague of mine (@wagjo) knows more details

joelkuiper21:02:15

there should be some details on this somewhere, let me look

benedek21:02:12

that is fixed and dusted for long time tho

joelkuiper21:02:36

ah okay, it’s been a while since we started this project

joelkuiper21:02:49

(July last year or something)

benedek21:02:54

so if only this, it should not hurt you anymore

joelkuiper21:02:19

nice, I’ll check it out again. Although I’ve never been good at putting these things is muscle memory

benedek21:02:31

we have hydras 😉

joelkuiper21:02:53

still not used to magit, most of the time I still use gitx (which was incidentally developed by a co-student of mine back in the day :p)

benedek21:02:29

haha, i used to hate any git client but I am a magit convert now

benedek21:02:46

latest version basically teaches you git in a very nice way

joelkuiper21:02:09

it doesn’t play well with Evil though, and I’m still no spacemacs convert (you can pry my 5 years of custom init.el from my cold dead hands :p)

joelkuiper21:02:27

they might have fixed that too though

joelkuiper21:02:35

I’m slow on the uptake sometimes 😛

benedek21:02:51

difficult to move away from old habits i guess

joelkuiper21:02:16

yeah, it’s weird how easy you commit things to muscle/procedural memory

joelkuiper21:02:32

even though better things exists, you get somehow stuck with your own peculiar workflow

joelkuiper21:02:40

eh whatever gets the job done well simple_smile

benedek21:02:16

that’s true. although i always find myself digging into emacs guts at some point 😉

benedek21:02:28

nothing like an editor you can program on the fly

joelkuiper21:02:02

hah that’s true! Clojure was actually the reason I converted from Vim to Emacs, and then got even more interested in Lisps

benedek21:02:51

interestingly i learned doing java in emacs looong time ago. there was even functional JDEE that time which got revived lately

benedek21:02:03

not as if i wanted to go back to java really...

joelkuiper21:02:03

Back in my Java days I was still a solid Vim user, tried various plugins for Eclipse … but it never really worked well; so I basically ended up using Eclipse

joelkuiper21:02:16

the Clj experience is much better 😛

benedek21:02:40

yeah same here (with bad eclipse experience and much better clj too 😉 )

joelkuiper21:02:44

wow that sounds like I’m really old, I’m not though … but 5 years ago can seem like a long time

benedek21:02:52

😄 not saying when my “learning java in emacs” was

malabarba22:02:18

I tried using firacode on Linux, but didn't see any ligatures 😞

benedek22:02:00

If I remember right this fix was only done in this osx port?!

benedek22:02:05

which enables ligatures

malabarba22:02:31

yeah, I think you're right

benedek22:02:46

would be nice to see it in 25...

joelkuiper22:02:03

it probably completely swaps out the rendering panel for the OSX native one, if I remember there has been some work to get this in general Emacs

joelkuiper22:02:34

but nothing in main yet

benedek22:02:44

perhaps that would open up the way of composing pretty symbols an other way — but i am way out of my league here...

joelkuiper22:02:04

yeah same, it’s probably part of the C/C++ core stuff

joelkuiper22:02:12

which I have no idea how to approach

benedek22:02:13

it is i think

malabarba22:02:38

Yes, the display engine is deep C

malabarba22:02:58

Hey, I just made a pun by accident simple_smile