On 18/07/2020 18:11, TRS-80 wrote:
>> On 2020-07-18 18:52, Daniele Nicolodi wrote:
>>
>> What else are you missing?
> 
> Typical navigation stuff, like up to parent (and on and on), which I
> suppose is just a matter of re-binding whatever command(s) from
> outline-mode.  I guess I just need to dig into those docs some more.

If you look at the key bindings for org-mode, you see that C-c C-u (the
keybinding from org-mode I think you are referring to) is bound to
outline-up-heading. This is one of those cases in which org-mode uses
the underlying outline-mode, thus the function to call with
outline-minor-mode active is the same.

As for the keybinding, you can bind it C-c C-u or you can set
outline-minor-mode-prefix to C-c and get all the outline commands with a
nicer prefix that the default C-c @. See the documentation
https://www.gnu.org/software/emacs/manual/html_node/emacs/Outline-Mode.html

>> What are you missing? beancount.el already has some code to augment
>> outline-minor-mode to make it behave more like org-mode. If there are
>> other desirable (reasonable) features I don't exclude we can add them.
> 
> I did notice beancount-outline-cycle for instance.  Nice touch.  :)

The idea would be to fold that into outline-mode itself, but I haven't
had time to double check attribution: I stole part of the implementation
from somewhere else (also with GPLv2 or later license) and GNU requires
assigning copyright to FSF, thus it is a bit of a nuisance...

> One thing I was missing was org-cycle-separator-lines, I did not find
> any analogue in outline-mode yet (in fairness, I have not yet begun to
> really study outline-mode yet, either).

I don't think there is anything similar in outline(-minor)-mode. I
consider it a minor visualization nicety, and I am not missing it at
all, thus I am not going to work on it.

> Since you asked, I thought about it and fill-paragraph was another
> thing I couldn't seem to get to work, either.  This is not related to
> org-mode though of course.  And I probably would not even have noticed
> if I was just entering transactions as opposed to setting up a new set
> of books and thus had some longer comments near the top of the file.

I don't think this is implemented indeed. It looks useful. I'll add it
to the TODO list. I'll also be happy to review a patch implementing it,
of course.

> I was more trying to scout out which would be the less hassle way
> forward between re-mapping (an as yet unknown) number of commands from
> outline-mode vs the alternative which was floated in the OP.  It
> sounds now like the former option not so bad after all, so that is the
> way I will proceed for now.

As I written above, have a look at outline-minor-mode-prefix, it may be
less typing than re-binding many functions. I don't think there are
beancount keybindings that would conflict. However, I don't do that
myself, so you have to double check.

Cheers,
Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/8ce24a9b-5c94-d45d-9da9-43eed7f8e1ea%40grinta.net.

Reply via email to