unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Commenting empty lines
@ 2021-05-17 20:29 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
  0 siblings, 2 replies; 3+ messages in thread
From: ludvig-faddeev @ 2021-05-17 20:29 UTC (permalink / raw)
  To: Help Gnu Emacs

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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-22  4:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).