[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] A simple way to search only headlines
From: |
Richard Lawrence |
Subject: |
Re: [O] A simple way to search only headlines |
Date: |
Fri, 07 Jun 2013 17:34:24 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Xebar Saram <address@hidden> writes:
> Hi Richard
>
> Fantastic, thx alot for the code snippet and detailed explanation, it
> really helps to understand what goes on. unfortunately i get an error:
>
> Wrong type argument: commandp, (lambda nil (org-agenda nil "s" "<"))
Ah, sorry about that, should have tested my code before I sent it!
The problem is that you have to give a /command/ to define-key (i.e., a
function with a call to `interactive' in its definition).
This should do it:
(define-key org-mode-map (kbd "C-M-h") (lambda () (interactive) (org-agenda nil
"s" "<")))
Best,
Richard
- [O] A simple way to search only headlines, Xebar Saram, 2013/06/01
- Re: [O] A simple way to search only headlines, Tassilo Horn, 2013/06/01
- Re: [O] A simple way to search only headlines, Sebastien Vauban, 2013/06/03
- Re: [O] A simple way to search only headlines, Xebar Saram, 2013/06/03
- Re: [O] A simple way to search only headlines, Thorsten Jolitz, 2013/06/04
- Re: [O] A simple way to search only headlines, Sebastien Vauban, 2013/06/04
- Re: [O] A simple way to search only headlines, Xebar Saram, 2013/06/07
- Re: [O] A simple way to search only headlines, Richard Lawrence, 2013/06/07
- Re: [O] A simple way to search only headlines, Xebar Saram, 2013/06/07
- Re: [O] A simple way to search only headlines,
Richard Lawrence <=
- Re: [O] A simple way to search only headlines, Nick Dokos, 2013/06/08
- Re: [O] A simple way to search only headlines, Sebastien Vauban, 2013/06/10
- Re: [O] A simple way to search only headlines, Nick Dokos, 2013/06/10
- Re: [O] A simple way to search only headlines, Sebastien Vauban, 2013/06/10
- Re: [O] A simple way to search only headlines, Nick Dokos, 2013/06/11
- Re: [O] A simple way to search only headlines, Suvayu Ali, 2013/06/11
- Re: [O] A simple way to search only headlines, Thorsten Jolitz, 2013/06/11
- Re: [O] A simple way to search only headlines, Suvayu Ali, 2013/06/11
- Re: [O] A simple way to search only headlines, Thorsten Jolitz, 2013/06/11