[Top][All Lists]

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

Replacing series of characters

From: lisa-asket
Subject: Replacing series of characters
Date: Wed, 14 Jul 2021 14:15:01 +0200 (CEST)

From: Eli Zaretskii <>
Subject: Re: Replacing series of characters
Date: 14/07/2021 13:36:31 Europe/Paris

> From:
> Date: Wed, 14 Jul 2021 07:48:05 +0200 (CEST)
> I would like to be able to write `;h1` in emacs and be transformed to
> `@c h1 *` when in texinfo-mode.  But only if it starts at the beginning
> of the line. 
> But actually I would like for this to happen in any mode, by replacing
> `@c` with the comment label of the particular major mode I am in.

M-; starts a comment in all major modes, is that what you want?

I want some kind of replacement, because I want to avoid having to press 

the Shift Key frequently to get `@` and `*`.  

I could write `;h1` to get `@c h1 *`, with the number of `*` being defined

by the numeric value preceeding the letter `h`.

reply via email to

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