From: Edward Flanigan <eflanigan00@hotmail.com>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Key binding option for comment-line and comment-dwim
Date: Sat, 4 Mar 2017 00:42:05 +0000 [thread overview]
Message-ID: <BLUPR14MB0305A9D598F4EC0EC6992B1EAE2A0@BLUPR14MB0305.namprd14.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]
This is more of my personal preference than a development issue so I apologize if this is out of place.
I post this in hopes of an easier way to comment a single line.
I think one of the two options below are an improvement over the existing behavior:
1.) comment-dwim (M-;) should comment line when pressed at the beginning of the line and no region is active.
A prefix C-u comment-dwim could then call comment-insert-comment-function to provide that behavior.
2.) comment-line should be bound to a single keystroke (such as C-M-;)
C-M-; is consistent with comment-dwim which is bound to M-;
C-x C-; isn't that useful when C-SPC C-n M-; does the same thing.
It seem to me that comment line is a frequently used command and would be of more use if something were changed.
I understand everyone has their preferences and emacs allows you to create whatever bindings fit your needs.
I wanted to share in case others also felt the need for an easier way to commnet.
I'm open to any other suggestions or improvements.
[-- Attachment #2: Type: text/html, Size: 1653 bytes --]
reply other threads:[~2017-03-04 0:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=BLUPR14MB0305A9D598F4EC0EC6992B1EAE2A0@BLUPR14MB0305.namprd14.prod.outlook.com \
--to=eflanigan00@hotmail.com \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).