From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: A simple way to search only headlines Date: Tue, 04 Jun 2013 09:50:07 +0200 Message-ID: <86k3mae2mo.fsf@somewhere.org> References: <87sj11a8yq.fsf@thinkpad.tsdh.de> <86y5arocrz.fsf@somewhere.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 Hello Xebar, >> Or, for a "pure" Org solution: >> >> C-c a < s *salsa dance >> >> searches for terms appearing only *in the headline* (including tags). > > That's great ,i appreciate it! > > Seb, is there a way to quick bind a key to the above series of commands? The programming equivalent to C-c a s is: (org-agenda nil "s") That's what you'd have to bind to a key (using a "lambda" function). What you want is the restriction to the current buffer as well. You should update the above, looking at the doc of `org-agenda' (sorry, no time now to do it). BTW, how to find that you have to bind `org-agenda'? Simply `C-h k', followed by the key binding for which you want to know more (here, `C-c a'), such as: which function does it call? Best regards, Seb -- Sebastien Vauban