help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: HELP: One Bindkey for Two Different Commands


From: Drew Adams
Subject: RE: HELP: One Bindkey for Two Different Commands
Date: Fri, 30 Nov 2007 08:55:22 -0800

> How 'bout some neat hack like:
> 
>   (global-set-key "\M-o" '(menu-item "Foo" bar
>                            :filter (lambda (x) (if (cdr (window-list))
>                                                    'other-window
>                                                  'switch-to-buffer))))

Chouette !




reply via email to

[Prev in Thread] Current Thread [Next in Thread]