Re: howto extend "window-ops-menu"?

Am Fri, 15 Oct 2010 16:23:06 +0200
schrieb clemens fischer <ino-news spotteswoode dnsalias org>:

;; extra window-ops

(nconc window-ops-menu `(()
                         (,(_ "_Destroy Window") destroy-window)
                         (,(_ "_Kill Client") kill-client)))

will work.

(_ ) marks "Text" as translatable, so either use (_ "Text" ) or "Text".
( "Text" ) is incomplete.

The second, optional _ inside "Text" is the hotkey. Say "_Destroy Window" will allow you
to press "d" to execute it, rather than using the mouse.

If everything is correct, kill-client will be correctly executed.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]