Fork me on GitHub
#emacs
<
2016-04-29
>
nullptr07:04:01

bonus awesome: (setq projectile-create-missing-test-files t)

plexus12:04:14

does anyone know how to set the default font for emacs?

plexus12:04:56

set-default-font is deprecated, it's now an alias for set-frame-font, but that means that when you create a new frame (`C-x 5 2`) it doesn't use the right font

dpsutton14:04:17

what i've done in the past is use customize-group for emacs, set the default face, and then go look at the customize.el file it creates to see what it likes to do

dpsutton14:04:03

I'm making tests that require point being at a certain spot of text in sexp's

dpsutton14:04:44

I've got it working with strings, where i pass in the entire sexp with a | as where I want my point, and then in a temp buffer, find this and delete it and then carry out my function

dpsutton14:04:00

I'd like to be able to just pass in a sexp and use a macro to do all this for me

dpsutton14:04:17

However, I'm not sure how to get the forms into the buffer unevaluated

dpsutton14:04:28

does anyone have any pointers?

dpsutton14:04:58

I want to insert the unevaluated form into the temp buffer since it contains invalid code and re-search for |, but insert is a function so it is evaluating the code

dpsutton14:04:33

I wish i could invoke the reader without the evaluator and have it give me its string representation

zzamboni15:04:31

@plexus: I always use customize-face and choose default, from which most other faces inherit

zzamboni15:04:35

which results in something like this in ~/.emacs, which I can then edit by hand:

plexus15:04:04

@dpsutton: the macro will receive the unevaluated sexp which you can turn into a string. Can't remember the function now (and I'm on my phone) but the equivalent of Clojure's pr-str

dpsutton15:04:17

thanks for thinking about it

dpsutton15:04:36

i was trying to stringify it with (format "%s" malformed-code) but this eval's the malformed code

plexus15:04:58

That's surprising

dpsutton15:04:34

not really, right? format is just a function so it eval's all of its arguments

dpsutton15:04:57

ah maybe (format "%s" (list @,malformed-code)) would work

plexus15:04:09

Ah you're outputting format from the macro? I would call it inside the macro

plexus15:04:46

Or wrap the argument in an extra (quote...)

plexus15:04:07

But yeah you want to generate that string at macro expansion time, not at runtime

dpsutton15:04:53

ah yes quote it worked

dpsutton15:04:57

thanks so much plexus

plexus15:04:19

always a pleasure :)