tweak(default): better vanilla multiple-cursor bindings#7342
tweak(default): better vanilla multiple-cursor bindings#7342UndeadKernel wants to merge 1 commit into
Conversation
|
Hi. I'll look over this more later today but I disagree with binding |
|
The reason for changing "C--" to "contract region" is that there are other ways to set negative arguments and setting negative arguments is not as common as working with the expansion and contraction of regions. I feel that I only sporadically use negative arguments and, when I need to, there is always "C-u -". |
With respect to Or if you use the Similarly, the transient map you wrote can be condensed to So in my opinion, we should add and and just condense that. Or we should use |
|
I agree that indeed "C--" could be a transient binding. I'll look into this. |
64dc971 to
8063d36
Compare
|
I propose to not use other minor modes (e.g., repeat-mode) and external packages to create transients for multiple-cursors and expand-region. I don't like the idea of relying on yet more minor modes when it's possible to do it without any for just a little boiler plate. Note that the "boiler plate" for the transients used in multiple-cursors (MC) is needed. Because of the way MC handles the creation of multiple cursors, all custom bindings for MC need to be named functions. |
I can understand why you would not want to pull in the
|
|
@hlissner, I'd like to have your opinion on this matter: As a summary, do you see any issue in using (and enabling) a new minor-mode to create transient bindings (for vanilla emacs only)? I originally created some transient bindings for the multiple-cursors minor mode using @LemonBreezes, is |
Yup, |
Better default (transient) bindings for multiple-cursors (mc) and expand-region (er) in vanilla emacs. A transient map takes care of repeating useful commands without having to input entire shortcut sequences. Added the binding "C-+" to create a new cursor like what is selected (following the recommendation of the package's author).
8063d36 to
acb2fc6
Compare
|
Sorry for the tremendously late response, but I'd prefer we use |
Better default bindings for multiple-cursors in vanilla emacs.
A transient map takes care of repeating useful commands without having to input entire shortcut sequences.
Added the binding "C-+" to create a new cursor like what is selected (following the recommendation of the package's author).