From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-compat: Allow imenu items without hierarchy Date: Sun, 15 Apr 2018 12:33:11 +0200 Message-ID: <8736zwlpy0.fsf@nicolasgoaziou.fr> References: <20180412154934.58182-1-michael@ndrix.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7eyD-0001Sn-Fk for emacs-orgmode@gnu.org; Sun, 15 Apr 2018 06:33:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7eyA-0007LZ-9g for emacs-orgmode@gnu.org; Sun, 15 Apr 2018 06:33:17 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57187) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f7eyA-0007Jz-31 for emacs-orgmode@gnu.org; Sun, 15 Apr 2018 06:33:14 -0400 In-Reply-To: <20180412154934.58182-1-michael@ndrix.org> (Michael Hendricks's message of "Thu, 12 Apr 2018 09:49:34 -0600") 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" To: Michael Hendricks Cc: emacs-orgmode@gnu.org Hello, Michael Hendricks writes: > * lisp/org-compat.el (org-imenu-flat): New custom variable. > (org-imenu-get-tree): Skip hierarchical item structure if > org-imenu-flat is true. > > Many of my Org files have deep hierarchies, but few total headings. > For those files, I find that navigating a flat menu structure is more > effective than navigating many nested menus. > > A flat imenu structure also works well with packages, such as idomenu, > which navigate imenu items via search. Thank you. However, you don't need to patch Org to have this. Just set `imenu-create-index-function' to your liking. Regards, -- Nicolas Goaziou