From: Marcel van der Boom <marcel@hsdev.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Can not get keybinding to work in org-agenda-mode
Date: Mon, 5 Nov 2012 12:26:02 +0100 [thread overview]
Message-ID: <20121105122602.4b1fa5dc@hsdev.com> (raw)
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> 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
next reply other threads:[~2012-11-05 11:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-05 11:26 Marcel van der Boom [this message]
2012-11-05 12:43 ` Can not get keybinding to work in org-agenda-mode Sebastien Vauban
2012-11-05 13:23 ` Marcel van der Boom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121105122602.4b1fa5dc@hsdev.com \
--to=marcel@hsdev.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).