unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Key binding option for comment-line and comment-dwim
@ 2017-03-04  0:42 Edward Flanigan
  0 siblings, 0 replies; only message in thread
From: Edward Flanigan @ 2017-03-04  0:42 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-04  0:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-04  0:42 Key binding option for comment-line and comment-dwim Edward Flanigan

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).