From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Commenting empty lines
Date: Tue, 18 May 2021 14:31:25 +0300 [thread overview]
Message-ID: <83pmxos2gi.fsf@gnu.org> (raw)
In-Reply-To: <trinity-6133dfaf-9cb6-4b26-96cc-4e80b9702a64-1621283375198@3c-app-mailcom-bs06> (ludvig-faddeev@gmx.com)
> 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?
next prev parent reply other threads:[~2021-05-18 11:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-17 20:29 Commenting empty lines ludvig-faddeev
2021-05-18 11:31 ` Eli Zaretskii [this message]
2021-05-22 4:32 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83pmxos2gi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).