help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eval elisp file automatically


From: Andrea Crotti
Subject: Re: Eval elisp file automatically
Date: Tue, 08 Feb 2011 16:38:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin)

Andrea Crotti <address@hidden> writes:
>
> After some time I came back and saw how dir local variables work,
> verynice.
>
> So I have this
> ((nil . 
>       ((compile-command . "cd $PAD_DIR && make -j")))
>  (c++-mode . (( flymake-mode . t))))
>
> BUT flymake doens't really get activated even if the variable is set to
> t.
> Isn't there a way to run elisp code somehow, or to modify a hook?
>
> About what I originally asked, well the idea was just that I don't want
> to define some functions in case I'm not working on a project.
>
> Now I just load the file with the functions defined and I'm fine.
> To make it more neat it would be good to load the file ONLY the first
> time that I visit a buffer in that directory, but that's not such a big
> deal..

I think I got it, I have to set "eval" as a variable.
I found out by chance using the interactive system to add variables, but
didn't see it documented anywhere.. is that possible?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]