From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re-map global key while in the agenda? Date: Fri, 11 Feb 2011 10:47:06 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=38300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnw9G-0002Sl-2B for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 11:47:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pnw9F-0007LQ-3o for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 11:47:09 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:35766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pnw9E-0007L7-UC for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 11:47:09 -0500 Received: by eyh6 with SMTP id 6so1364893eyh.0 for ; Fri, 11 Feb 2011 08:47:06 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hello, I have i mapped to 'org-clock-in and I would also like i to clock in while I'm in the agenda. I have i bound using global-set-key like this: (global-set-key (kbd " i") 'org-clock-in) And I tried using "define-key" to redefine F3-i in agenda mode like this: (add-hook 'org-agenda-mode-hook '(lambda () (define-key org-agenda-mode-map (kbd " i") 'org-agenda-clock-in) )) But, when I'm in the agenda, i is always mapped to 'org-clock-in, not 'org-agenda-clock-in Is it possible to redefine a global key mapping in the agenda? Thanks, --Nate