Per-directory settings

Thorsten Haude yoo at vranx.de
Sat Aug 26 20:07:39 CEST 2006


Hi,

* Tony Balinski wrote (2006-08-26 13:52):
>Quoting Thorsten Haude <yoo at vranx.de>:
>> * Tony Balinski wrote (2006-08-25 12:04):
>> >command wrapper shell script could be written to load up an alternative
>> >nedit.rc, containing something like:
>> >
>> >  #!/bin/sh
>> >  nedit_cmd=nedit              # or nc, if you prefer
>>
>> (Actually I think we shouldn't even mention nedit anymore.)
>ha!

No, really. I only use nedit when running a fresh compile, never in
production. The client is just the way people should use NEdit.


>> >  if [ -d "$PWD/.nedit" ] && [ -f "$PWD/.nedit/nedit.rc" ]; then
>> >    NEDIT_HOME="$PWD/.nedit" $nedit_cmd "$@"
>>                      ^^^^^^^
>> This should point to the directory.
>If you want a visible nedit.rc file in your project directory, fair enough.
>Here I suggest (perhaps not very clearly) putting the customised in a hidden
>subdirectory, .nedit, where any other neditty files could be placed too.
>A matter of taste IMO.

Oh, I see. I mixed that up with the old name of nedit.rc.


>> >If this is the extent of your difficulties, you can probably do this using
>> >macro code in your ~/.nedit/autoload.nm file.
>>
>> Again, only for nedit, not nc.
>What? Autoload is read when the nedit process starts, whether started by nc
>or by another program (shells, say).

Sure, but only the first time. Your trick wouldn't work on subsequent
onvocation, as autoload.nm wouldn't be read.


Thorsten                            Broken Social Scene: I'm Still Your Fag
-- 
Strange it is, that men should admit the validity of the arguments for
free discussion, but object to their being "pushed to an extreme;" not
seeing that unless the reasons are good for an extreme case, they are
not good for any case.
    - John Stuart Mill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.nedit.org/pipermail/discuss/attachments/20060826/9f89efa5/attachment.bin


More information about the Discuss mailing list