[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode |
Date: |
Thu, 19 Nov 2015 09:39:31 +0100 |
Hello,
Jonas Bernoulli <address@hidden> writes:
> Nicolas Goaziou <address@hidden> writes:
>
>> Jonas Bernoulli <address@hidden> writes:
>>
>>> Thanks. But could you please change it to
>>>
>>> (if (or outline-minor-mode orgstruct-mode)
>>> (call-interactively #'show-children)
>>> ...)
>>
>> You could set `orgstruct-mode' to a non-nil value whenever
>> `outline-minor-mode' is enabled.
>
> I could (instead I am currently just maintaining a local patch),
> but what is the reasoning for not just doing what I suggested?
There is no reason for Org's core to know about `outline-minor-mode', or
any other minor mode in the wild.
IMO, using a hook is much more simple than maintaining a local patch.
Regards,
--
Nicolas Goaziou
- [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode, Jonas Bernoulli, 2015/11/08
- Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode, Nicolas Goaziou, 2015/11/14
- Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode, Jonas Bernoulli, 2015/11/18
- Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode,
Nicolas Goaziou <=
- Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode, Jonas Bernoulli, 2015/11/19
- Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode, Rasmus, 2015/11/19