[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keybinding that loops through Major Modes
From: |
Christopher Dimech |
Subject: |
Re: Keybinding that loops through Major Modes |
Date: |
Mon, 2 Nov 2020 23:11:57 +0100 |
Have used Org Babel before. My situation is more complicated
because I use Org Commands in Source Files as well. To add
further complication, I also add rec commands that can be parsed
by Gnu Recutils, which is useful to we because I can compute some
metrics for my code, such as the Cyclomatic Complexity of each
function.
> Sent: Monday, November 02, 2020 at 10:31 PM
> From: "Vegard Vesterheim" <vegard.vesterheim@uninett.no>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: moasenwood@zoho.eu, help-gnu-emacs@gnu.org
> Subject: Re: Keybinding that loops through Major Modes
>
> On Mon, 2 Nov 2020 22:10:02 +0100 Christopher Dimech <dimech@gmx.com> wrote:
>
> > I shall explain better then. In my .texi files I customarily include
> > commands
> > from other modes or want to use some hooks from other modes (e.g. org-mode).
> > So even after I load a file with the default mode, I would need to quickly
> > shift to another mode temporarily, then switch back to normal-mode.
>
> I realize this is not an answer to your original question. But have you
> considered writing your file in org-mode? Org-mode can export to
> several formats, also texi.
>
> Org-mode has this thing called babel
> (https://orgmode.org/worg/org-contrib/babel/) which allows you to embed
> (and even execute) blocks of code in your document.
>
> From the manual
> (https://orgmode.org/manual/Editing-Source-Code.html#Editing-Source-Code):
>
> Use C-c ' to edit the current code block. It opens a new major mode edit
> buffer containing the body of the source code block, ready for any edits.
>
> --
> Vennlig hilsen/Best regards
> Vegard Vesterheim
> Senior Software engineer
> +47 48 11 98 98
> vegard.vesterheim@uninett.no
>
- Keybinding that loops through Major Modes, Christopher Dimech, 2020/11/02
- Re: Keybinding that loops through Major Modes, Emanuel Berg, 2020/11/02
- Re: Keybinding that loops through Major Modes, Christopher Dimech, 2020/11/02
- Re: Keybinding that loops through Major Modes, tomas, 2020/11/03
- Re: Keybinding that loops through Major Modes, Christopher Dimech, 2020/11/03
- Re: Keybinding that loops through Major Modes, Jean Louis, 2020/11/03
- Re: Keybinding that loops through Major Modes, Christopher Dimech, 2020/11/03
- Re: Keybinding that loops through Major Modes, Michael Heerdegen, 2020/11/03
- Re: Keybinding that loops through Major Modes, Emanuel Berg, 2020/11/03
- Re: Keybinding that loops through Major Modes, Michael Heerdegen, 2020/11/03
- Re: Keybinding that loops through Major Modes, Christopher Dimech, 2020/11/03
- Re: Keybinding that loops through Major Modes, Joost Kremers, 2020/11/03
- Re: Keybinding that loops through Major Modes, Michael Heerdegen, 2020/11/03