[Top][All Lists]

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

Re: Keybinding that loops through Major Modes

From: Vegard Vesterheim
Subject: Re: Keybinding that loops through Major Modes
Date: Mon, 02 Nov 2020 22:31:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

On Mon, 2 Nov 2020 22:10:02 +0100 Christopher Dimech <> 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
( which allows you to embed
(and even execute) blocks of code in your document.

>From the manual

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

reply via email to

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