Message from discussion Trying to rebind menu widgets
From: Davin Pearson <davin.pear...@gmail.com>
Subject: Re: Trying to rebind menu widgets
Date: Sat, 17 Apr 2010 01:39:18 -0700 (PDT)
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1271493559 4782 127.0.0.1 (17 Apr 2010 08:39:19 GMT)
NNTP-Posting-Date: Sat, 17 Apr 2010 08:39:19 +0000 (UTC)
Injection-Info: u31g2000yqb.googlegroups.com; posting-host=126.96.36.199;
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:188.8.131.52)
On Apr 15, 3:56=A0pm, Davin Pearson <davin.pear...@gmail.com> wrote:
> I am trying to rebing <tool-bar> <kill-buffer> to d-kill-buffer, my
> own creation. =A0Here is the code that I have tried to use but failed:
> (global-set-key [<tool-bar> <kill-buffer>] 'd-kill-buffer)
> This doesn't work as after executing this command, the mouse clicks
> are still bound to kill-this-buffer, which I don't want. =A0Would
> someone be able to help me with the solution to this problem?
Sorry for wasting your time but I finally got it to work using the
"Maybe Kill Buffer"
:help "Maybe Kill Buffer"
:image (image :type xpm :file "../etc/images/close.xpm")