From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: A simple way to search only headlines Date: Mon, 10 Jun 2013 17:04:34 +0200 Message-ID: <86txl60zy5.fsf@somewhere.org> References: <87sj11a8yq.fsf@thinkpad.tsdh.de> <86y5arocrz.fsf@somewhere.org> <86k3mae2mo.fsf@somewhere.org> <87mwr1egjr.fsf@berkeley.edu> <87ip1pkwco.fsf@pierrot.dokosmarshall.org> <86bo7e4dww.fsf@somewhere.org> <87d2ruktd0.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nick, Nick Dokos wrote: > "Sebastien Vauban" writes: >> Nick Dokos wrote: >>> The OP probably wants this in the global keymap, rather than in the >>> org-mode-map: just like the agenda dispatcher C-c a, this functionality is >>> useful outside an org file. >>> >>> (global-set-key (kbd "C-M-h") (lambda () (interactive) (org-agenda nil "s" "<"))) >> >> Not sure to understand when this functionality would be useful outside of Org. >> Can you explain? > > I meant "org buffer": you might want to issue the command from an > arbitrary buffer, not just an org mode buffer, so the key should be > defined globally. I still don't understand. Here, the command is for searching among (Org) headlines of the current buffer -- see the restriction "<". I don't see how it would make sense to call that on something other than an Org mode buffer? Maybe you missed the "<" restriction? Or do I miss something else? Best regards, Seb -- Sebastien Vauban