- Subject: Re: jed start with n files in n windows?
- From: Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Nov 2007 08:39:07 +0100
On Thu 2007-11-22 (16:53), Ulli Horlacher wrote:
> I want to start jed with n files in n separate windows.
Ok, I have now written this function:
define autosplit() {
variable buf;
if (nwindows() > 1) return;
loop (buffer_list()) {
buf = ();
% skip internal/special buffers and already displayed buffers
!if ((buf[0] == ' ') or (buf[0] == '*') or buffer_visible(buf)) {
splitwindow;
sw2buf(buf);
}
}
}
which is called by startup_hook(). This does the trick :-)
One small problem is left: with more than 2 windows the new window size
gets smaller and smaller. How could I make them the same size?
--
Ullrich Horlacher Informationssysteme und Serverbetrieb
Rechenzentrum E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart Tel: ++49-711-685-65868
Allmandring 30 Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.rus.uni-stuttgart.de/
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]