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

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

Re: Replacing series of characters


From: Eli Zaretskii
Subject: Re: Replacing series of characters
Date: Wed, 14 Jul 2021 14:36:31 +0300

> From: lisa-asket@perso.be
> 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?



reply via email to

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