Per-directory settings

wwp subscript at free.fr
Tue Aug 29 23:34:37 CEST 2006


Hello Thorsten,


On Tue, 29 Aug 2006 21:39:22 +0200 Thorsten Haude <yoo at vranx.de> wrote:

> Hi,
> 
> * wwp wrote (2006-08-29 21:26):
> >Q: and what about checking filename + '/../.neditrc' for the vim modelines
> >instead of filename itself (rude way to do dirname(filename)+'/.neditrc'?
> >Wouldn't this (roughly, but you get the idea) allow to use per-directory
> >modelines instead of per-files?
> 
> The file open hook will always be called for the just opened file.
> But you could probably do something like this in the hook:
>     load_macro_file($file_path "/.neditrc")

Exactly what I was thinking of!


> Modelines are in the file in question. I don't think it would make
> sense to change their specification unless you can convince the Vim
> guys to change theirs.

I don't want to touch vim things, but maybe to use a new .neditrc
or a personal .foobarmystuff file (whose contents is vim-like) to use w/ your
macros (slightly modified).


> >Also, I tried to apply enhanced.2005-11-24.1.diff.gz to current CVS
> >sources, but many hunks fails.
> 
> This patch is pretty old, use the latest. (Which is the only one with
> the hook anyway.)

lol I'm blind. Of course I've taken the one at bottom of list instead of the
top one! Sorry for the noise.

The enhanced.2006-08-29.2.diff one applies fine but the 3 first hunks in
util/getfile.c. Easy to workaround, though.


Regards,

-- 
wwp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.nedit.org/pipermail/discuss/attachments/20060829/0bf3761a/signature.bin


More information about the Discuss mailing list