[systemd-devel] [PATCH] Keep emacs configuration in one configuration file.
Lennart Poettering
lennart at poettering.net
Mon Mar 7 12:01:43 PST 2011
On Mon, 07.03.11 20:12, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
>
> On 07.03.2011 20:00, Lennart Poettering wrote:
> >On Mon, 07.03.11 19:23, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
> >
> >>On 07.03.2011 19:04, Lennart Poettering wrote:
> >>>Oh, I had assumed that .vimrc trick would allow project-wide vim
> >>>modelines without having to edit each and every single file.
> >>>
> >>>Currently, every file does contain an emacs modeline at the top. It
> >>>would be fair I guess to add a vim modeline to all those files too, even
> >>>though it's not necessarily pretty.
> >>Hi,
> >>maybe it makes sense to go in the opposite direction: add .dir-locals.el
> >>in the top directory. The settings are actually identical in all
> >>.[ch] files.
> >Ah fantastic. I didn't know this existed. I merged this now.
> >
> >Hmm, but this doesn't really seem to work here. Does it work for you?
> I seems to work. I set basic-offset to 11 and indeed, that's what I
> got in the buffer. I don't think this value could come from anywhere
> else :).
>
> AFAICT .dir-locals.el were introduced in emacs 23.1
> (http://www.gnu.org/software/emacs/NEWS.23.1)
Weird. But well if it works for you I guess there's a chance that it
works for other people too, so it's good i merged this. Too lazy to
figure out why it doesn't work for me...
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list