Fork me on GitHub
#emacs
<
2017-06-28
>
richiardiandrea00:06:11

So if I have a defcustom or a defvar that I want to be local to a comint buffer, where/how do I define it?

a1309:06:17

@richiardiandrea I think you should use

defvar-local
instead of
defvar
, defcustom can't be local in any way. Well, you can try to apply make-variable-buffer-local to it, but it doesn't make sense.

richiardiandrea14:06:09

@a13 thanks i am going to try that, it always trips me...then .dir-locals el should be able to customize that right? I was also reading that buffers with no file need some trick for .dir-locals.el...will Google it

richiardiandrea15:06:43

@dpsutton awesome thanks! I was fed up with no feedback from comint so I now will have a var that will point to a file and dump there

richiardiandrea16:06:41

That command works smoothly thanks folks.

wei23:06:05

is there a formatting style in Emacs that’s consistent with Cursive’s? trying to reconcile the formatting style at our company

dpsutton23:06:23

i've seen Cursive put ; single semi colon comments at the beginning of lines and this looks to be pretty ingrained into emacs to put it at the right side

dpsutton23:06:28

if that's what you're trying to do

dpsutton23:06:04

but this will be a guide to get it going