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

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

Re: Commenting empty lines


From: Emanuel Berg
Subject: Re: Commenting empty lines
Date: Sat, 22 May 2021 06:32:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

ludvig-faddeev wrote:

> Have made a keybinding for commenting lines like this
>
> (global-set-key (kbd "C-;") (kbd "C-x C-;"))
>
> This means that hitting "C-;" multiple times will comment
> and uncomment the line.
>
> But when there is an empty line I want to insert the comment
> symbol, because using "C-;" does not introduce the
> comment mark.

Heh, creative! How does that work, I always wanted the "rapid
fire" interface in mpv for example, fast forward one time 1,
but two times and three times 1, 2, 4, not 1+1+1...

Anyway here, I think you look for `comment-empty-lines'?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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