From: Dr E. W L. <el...@li...> - 2019-08-24 14:04:09
|
Wow! As 'C' is close to the Control and Command keys, and because cmd-] indents (tabs) alreay I have tied it to ctrl-cmd-]. binding create {zc ']'} centerRegion Is there a way of tieing it to more than one key? I sometimes use a German keyboard, and while I can of course have different prefs.tcl, I'd like normalization from a single source :-)-O And, of course this now asks for an uncenterRegion :-)-O greetings, el On 2019-08-24 13:29 , Eberhard W Lisse wrote: > Bernard, > > as usual, very, very cool. > > I will this out as soon as I am back from ward rounds. > > el > > — > Sent from Dr Lisse’s iPad Mini 5 > On 24 Aug 2019, 09:00 +0200, Bernard Desgraupes <bde...@or...>, wrote: >> Hi Eberhard, >> >> Here is a proc called centerRegion that centers a block of text. By >> default, it applies to the current window and takes the current value >> of the fillColumn preference (usually 75). You could copy this proc >> in your prefs.tcl file. >> >> If you want to bind it to ctrl-cmd-C for instance, add the following >> instruction: binding create {zc 'C'} centerRegion [...] >> Hope this helps, >> Bernard [...] -- Dr. Eberhard W. Lisse / Obstetrician & Gynaecologist (Saar) el...@li... / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 / Bachbrecht, Namibia ;____/ |