emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yasushi SHOJI <yashi@atmark-techno.com>
To: emacs-orgmode@gnu.org
Subject: Re: simple way to call `C-c a v' or a way to bind it to a key?
Date: Sun, 16 Feb 2014 17:07:21 +0900	[thread overview]
Message-ID: <87ppmntr9i.wl@dns1.atmark-techno.com> (raw)
In-Reply-To: <87d2ioth4g.fsf@gmail.com>

Hi Thorsten,

At Sat, 15 Feb 2014 18:34:07 +0100,
Thorsten Jolitz wrote:
> 
> so instead of binding the dispatcher function to a global key you can
> bind one or more of the specific functions, e.g.
> 
> ,------------------------------------------------
> | (global-set-key (kbd "<f12>") 'org-agenda-list)
> `------------------------------------------------

I thought simply binding `org-agenda-list' to a key does not work in
the case with custome agenda setup.

But, it turns out that it's as simple as the following:

	(defun yashi/org-agenda (&optional arg)
	  (interactive "P")
	  (org-agenda arg "a"))
	
	(global-set-key (kbd "<f1>") 'yashi/org-agenda)

Thanks,
-- 
             yashi

  reply	other threads:[~2014-02-16  8:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-15 13:35 simple way to call `C-c a v' or a way to bind it to a key? Yasushi SHOJI
2014-02-15 14:38 ` Thorsten Jolitz
2014-02-15 16:31   ` Yasushi SHOJI
2014-02-15 17:34     ` Thorsten Jolitz
2014-02-16  8:07       ` Yasushi SHOJI [this message]
2014-02-16 21:20 ` Marc Ihm
2014-02-17  9:43   ` Nicolas Richard
2014-02-18  3:45     ` Yasushi SHOJI

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=87ppmntr9i.wl@dns1.atmark-techno.com \
    --to=yashi@atmark-techno.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).