[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commenting empty lines
From: |
Eli Zaretskii |
Subject: |
Re: Commenting empty lines |
Date: |
Tue, 18 May 2021 14:31:25 +0300 |
> From: ludvig-faddeev@gmx.com
> Date: Mon, 17 May 2021 22:29:35 +0200
>
> 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.
Did you try setting comment-empty-lines to a non-nil value?