From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonas Bernoulli Subject: Re: Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode Date: Sun, 08 Nov 2015 16:48:46 +0100 Message-ID: <87a8qofq62.fsf@bernoul.li> References: <87oaf4wn30.fsf@bernoul.li> <87vb9c7bui.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvSD9-0001qV-Sb for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 10:48:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvSD6-0006bM-Mo for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 10:48:55 -0500 Received: from mail.hostpark.net ([212.243.197.30]:57173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvSD6-0006aY-GU for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 10:48:52 -0500 In-reply-to: <87vb9c7bui.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > `orgstruct-mode' really needs some love. It's really hard to understand what is going on for someone not familiar with the Org code. Furthermore I am not using the default Emacs bindings (but I also tested with emacs -Q), so code that generates commands and bindings, like `outstruct-setup' does, always makes me uncomfortable, as it usually isn't flexible enough to deal with heavily modified bindings. > Anyway, I pushed a fix for the issue. Thanks. But could you please change it to (if (or outline-minor-mode orgstruct-mode) (call-interactively #'show-children) ...) `outline-minor-mode' combined with `org-cycle' gives me the feature I *really* want/need. `orgstruct-mode' sounds like it could be really useful too, but as I mentioned it doesn't work for me at all. So for now I would like to stick to just `outline-minor-mode'. Thanks Jonas Ps: I am still not sure whether I am just doing something stupid or why else `orgstruct-mode' doesn't work for me. So I would apprechiate a little tutorial starting from emacs -Q that demonstrates what setup is required and what keys I have to press for things to happen.