[O] [PATCH] org-compat: Allow imenu items without hierarchy

2018-04-21 Thread Michael Hendricks
* 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

Re: [O] [PATCH] org-compat: Allow imenu items without hierarchy

2018-04-17 Thread Michael Hendricks
Hi Nicolas, On Sun, Apr 15, 2018 at 4:33 AM Nicolas Goaziou wrote: > Thank you. However, you don't need to patch Org to have this. Just set > `imenu-create-index-function' to your liking. > Thanks for the suggestion. That's how I was doing it before this patch and it

Re: [O] [PATCH] org-compat: Allow imenu items without hierarchy

2018-04-15 Thread Nicolas Goaziou
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

[O] [PATCH] org-compat: Allow imenu items without hierarchy

2018-04-12 Thread Michael Hendricks
* 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