From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel van der Boom Subject: Can not get keybinding to work in org-agenda-mode Date: Mon, 5 Nov 2012 12:26:02 +0100 Message-ID: <20121105122602.4b1fa5dc@hsdev.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVKpF-0005hA-Ty for emacs-orgmode@gnu.org; Mon, 05 Nov 2012 06:26:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVKpB-0000Vn-Kr for emacs-orgmode@gnu.org; Mon, 05 Nov 2012 06:26:41 -0500 Received: from hawking.hsdev.com ([213.125.12.142]:39983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVKpB-0000TH-E2 for emacs-orgmode@gnu.org; Mon, 05 Nov 2012 06:26:37 -0500 Received: from mrb.hsdev.com (router2.hsdev.com [213.125.12.138]) by hawking.hsdev.com (Postfix) with ESMTPA id 88223454001 for ; Mon, 5 Nov 2012 12:26:04 +0100 (CET) Received: from hsdev.com (localhost [127.0.0.1]) by mrb.hsdev.com (Postfix) with ESMTP id 4BDD665EE5 for ; Mon, 5 Nov 2012 12:26:03 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode List Hi, I use org-mime to mail subtrees from org-mode and have bound this to 'C-c m' I would like to be able to do the same thing from my agenda views, but somehow I can't get the keybinding to work. This is what I have: (defun m/ms-org-agenda () (interactive) (org-agenda-goto) (org-mime-subtree)) ;; This works (define-key org-mode-map [(control c) m] 'org-mime-subtree) ;; This does not (define-key org-agenda-mode-map [(control c) m] 'm/ms-org-agenda) When asking help about modes (C-h m) I see the keybinding listed: key binding --- ------- ... C-c m/ms-org-agenda ... I don't get any errors, other than 'C-c m is undefined' What am I missing here? Thx, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV -- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org