help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

outline-minor-mode and org-mode capabilities for programming languages


From: Christopher Dimech
Subject: outline-minor-mode and org-mode capabilities for programming languages
Date: Sun, 9 May 2021 14:35:41 +0200

There are some difficulties using outline-minor-mode and can do with some 
improvements.
As you declared, the key bindings are problematic.

Going through "https://www.emacswiki.org/emacs/OutlineMode";, the  advantages of 
cycling
is discussed, referring to OrgMode and its many features.

The text also refers to outline-magic by Carsten Dominik that provides the 
command
"outline-cycle".

Would there be any interest in outline-minor-mode in remodeling for cycling 
using 
<tab> and moving around with M-up, M-<down>, M-right, M-left, with same effect 
as
OrgMode.

These types of functionalities (org mode for programming languages) will make 
it much
easier to navigate and modify the code quite rapidly.   

> Sent: Sunday, May 09, 2021 at 9:11 PM
> From: "Jean Louis" <bugs@gnu.support>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: outline-minor-mode and org-mode capabilities for programming 
> languages
>
> * Christopher Dimech <dimech@gmx.com> [2021-05-09 11:54]:
> > Dear Compeers,
> > 
> > I have same elisp code and using outline-minor-mode.  The good thing about 
> > it is that
> > the language highlighting is preserved.  But navigating and moving the code 
> > around is
> > much more difficult than actually being in org-mode (I can use tab ate move 
> > code with
> > "M-<up>", M-<down>).  The downside is that org-mode removes the 
> > highlighting for the
> > language.  Is there any way out of this.  Having flexibility of org-mode 
> > with language
> > highlighting preserved?
> 
> That is great for programming. I had difficulties with the key binding
> like @ if I remember well, so I have changed the prefix to what is
> closer to C-c, so I have changed it to C-c C-d
> 
> outline-minor-mode-prefix is a variable defined in ‘outline.el’.
> 
> Its value is ""
> Original value was "@"
> 
>   You can customize this variable.
>   Probably introduced at or before Emacs version 19.20.
> 
> Then instead of C-c Shift-@ C-n I Just do C-c C-d C-n 
> 
> Outline-minor-mode is not related to Org mode
> 
> -- 
> Jean
> 
> Take action in Free Software Foundation campaigns:
> https://www.fsf.org/campaigns
> 
> Sign an open letter in support of Richard M. Stallman
> https://stallmansupport.org/
> https://rms-support-letter.github.io/
> 
> 
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]