From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: A simple way to search only headlines Date: Mon, 10 Jun 2013 09:06:35 -0400 Message-ID: <87d2ruktd0.fsf@pierrot.dokosmarshall.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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um1pb-0004Dx-1g for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 09:08:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um1o9-0007jq-Uv for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 09:06:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:51202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um1o9-0007jj-Ls for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 09:06:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Um1o8-0007KA-8F for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 15:06:48 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 15:06:48 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 15:06:48 +0200 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Nick, > > 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. -- Nick