From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Commenting empty lines
Date: Sat, 22 May 2021 06:32:56 +0200 [thread overview]
Message-ID: <87sg2f9ymf.fsf@zoho.eu> (raw)
In-Reply-To: trinity-6133dfaf-9cb6-4b26-96cc-4e80b9702a64-1621283375198@3c-app-mailcom-bs06
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
prev parent reply other threads:[~2021-05-22 4:32 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
2021-05-22 4:32 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
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=87sg2f9ymf.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/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).