Changing the prefix of many chords Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I change a key binding which also has its own prefix key?How to properly change defcustom prefix keyUndefine prefix bindingHow to redefine the allout prefix keybindingHow to preserve emacs key bindings when changing keyboard layout?Find out the purpose of a Prefix Command listed in describe-bindingstranslate a modifier key (Super to Ctrl OS X)Relocating an anonymous prefix keymapProper way to change prefix key for minor-mode map?Convention about using C-x or C-c as prefix keys
Monty Hall Problem-Probability Paradox
How can a team of shapeshifters communicate?
Why do early math courses focus on the cross sections of a cone and not on other 3D objects?
Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
Is multiple magic items in one inherently imbalanced?
What does the writing on Poe's helmet say?
Universal covering space of the real projective line?
How were pictures turned from film to a big picture in a picture frame before digital scanning?
Did pre-Columbian Americans know the spherical shape of the Earth?
How to change the tick of the color bar legend to black
Getting out of while loop on console
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
Printing attributes of selection in ArcPy?
What is the origin of 落第?
How many time has Arya actually used Needle?
How can I prevent/balance waiting and turtling as a response to cooldown mechanics
Test print coming out spongy
New Order #6: Easter Egg
Rationale for describing kurtosis as "peakedness"?
What would you call this weird metallic apparatus that allows you to lift people?
Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?
Does the Mueller report show a conspiracy between Russia and the Trump Campaign?
A `coordinate` command ignored
The test team as an enemy of development? And how can this be avoided?
Changing the prefix of many chords
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How do I change a key binding which also has its own prefix key?How to properly change defcustom prefix keyUndefine prefix bindingHow to redefine the allout prefix keybindingHow to preserve emacs key bindings when changing keyboard layout?Find out the purpose of a Prefix Command listed in describe-bindingstranslate a modifier key (Super to Ctrl OS X)Relocating an anonymous prefix keymapProper way to change prefix key for minor-mode map?Convention about using C-x or C-c as prefix keys
It just occurred to me that the org-babel prefix C-c C-v
must be what
it is because of the proximity of c
and v
in qwerty, and that it
would be better for me to use C-c C-f
. Is there a simple way to
change the prefix for all chords using it?
key-bindings
add a comment |
It just occurred to me that the org-babel prefix C-c C-v
must be what
it is because of the proximity of c
and v
in qwerty, and that it
would be better for me to use C-c C-f
. Is there a simple way to
change the prefix for all chords using it?
key-bindings
add a comment |
It just occurred to me that the org-babel prefix C-c C-v
must be what
it is because of the proximity of c
and v
in qwerty, and that it
would be better for me to use C-c C-f
. Is there a simple way to
change the prefix for all chords using it?
key-bindings
It just occurred to me that the org-babel prefix C-c C-v
must be what
it is because of the proximity of c
and v
in qwerty, and that it
would be better for me to use C-c C-f
. Is there a simple way to
change the prefix for all chords using it?
key-bindings
key-bindings
asked Apr 16 at 11:10
ToothrotToothrot
871412
871412
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you really want to override the binding C-c C-f for org-forward-heading-same-level
you can do that as follows.
(defvar org-C-c-C-v (lookup-key org-mode-map (kbd "C-c C-v"))
"Binding of C-c C-v in Orgmode.")
(defvar org-C-c-C-f (lookup-key org-mode-map (kbd "C-c C-f"))
"Binding of C-c C-f in Orgmode.")
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-v)
(define-key org-mode-map (kbd "C-c C-v") nil)
One could also avoid the variables org-C-c-C-v
and org-C-c-C-f
by substituting their values into the first define-key
and by ignoring the value of the original binding for C-c C-f. The variables give you the possibility to easily switch back to the original state without reloading org.
Note that the usage of defvar
is kind of protection of the original binding value. When you have already the modified bindings through running the code once and reevaluate the code the values of org-C-c-C-v
and org-C-c-C-f
are not overwritten by the new bindings because of the special behavior of defvar
(see its doc).
You can switch back to the original bindings with:
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-f)
(define-key org-mode-map (kbd "C-c C-v") org-C-c-C-v)
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "583"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f48956%2fchanging-the-prefix-of-many-chords%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you really want to override the binding C-c C-f for org-forward-heading-same-level
you can do that as follows.
(defvar org-C-c-C-v (lookup-key org-mode-map (kbd "C-c C-v"))
"Binding of C-c C-v in Orgmode.")
(defvar org-C-c-C-f (lookup-key org-mode-map (kbd "C-c C-f"))
"Binding of C-c C-f in Orgmode.")
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-v)
(define-key org-mode-map (kbd "C-c C-v") nil)
One could also avoid the variables org-C-c-C-v
and org-C-c-C-f
by substituting their values into the first define-key
and by ignoring the value of the original binding for C-c C-f. The variables give you the possibility to easily switch back to the original state without reloading org.
Note that the usage of defvar
is kind of protection of the original binding value. When you have already the modified bindings through running the code once and reevaluate the code the values of org-C-c-C-v
and org-C-c-C-f
are not overwritten by the new bindings because of the special behavior of defvar
(see its doc).
You can switch back to the original bindings with:
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-f)
(define-key org-mode-map (kbd "C-c C-v") org-C-c-C-v)
add a comment |
If you really want to override the binding C-c C-f for org-forward-heading-same-level
you can do that as follows.
(defvar org-C-c-C-v (lookup-key org-mode-map (kbd "C-c C-v"))
"Binding of C-c C-v in Orgmode.")
(defvar org-C-c-C-f (lookup-key org-mode-map (kbd "C-c C-f"))
"Binding of C-c C-f in Orgmode.")
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-v)
(define-key org-mode-map (kbd "C-c C-v") nil)
One could also avoid the variables org-C-c-C-v
and org-C-c-C-f
by substituting their values into the first define-key
and by ignoring the value of the original binding for C-c C-f. The variables give you the possibility to easily switch back to the original state without reloading org.
Note that the usage of defvar
is kind of protection of the original binding value. When you have already the modified bindings through running the code once and reevaluate the code the values of org-C-c-C-v
and org-C-c-C-f
are not overwritten by the new bindings because of the special behavior of defvar
(see its doc).
You can switch back to the original bindings with:
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-f)
(define-key org-mode-map (kbd "C-c C-v") org-C-c-C-v)
add a comment |
If you really want to override the binding C-c C-f for org-forward-heading-same-level
you can do that as follows.
(defvar org-C-c-C-v (lookup-key org-mode-map (kbd "C-c C-v"))
"Binding of C-c C-v in Orgmode.")
(defvar org-C-c-C-f (lookup-key org-mode-map (kbd "C-c C-f"))
"Binding of C-c C-f in Orgmode.")
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-v)
(define-key org-mode-map (kbd "C-c C-v") nil)
One could also avoid the variables org-C-c-C-v
and org-C-c-C-f
by substituting their values into the first define-key
and by ignoring the value of the original binding for C-c C-f. The variables give you the possibility to easily switch back to the original state without reloading org.
Note that the usage of defvar
is kind of protection of the original binding value. When you have already the modified bindings through running the code once and reevaluate the code the values of org-C-c-C-v
and org-C-c-C-f
are not overwritten by the new bindings because of the special behavior of defvar
(see its doc).
You can switch back to the original bindings with:
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-f)
(define-key org-mode-map (kbd "C-c C-v") org-C-c-C-v)
If you really want to override the binding C-c C-f for org-forward-heading-same-level
you can do that as follows.
(defvar org-C-c-C-v (lookup-key org-mode-map (kbd "C-c C-v"))
"Binding of C-c C-v in Orgmode.")
(defvar org-C-c-C-f (lookup-key org-mode-map (kbd "C-c C-f"))
"Binding of C-c C-f in Orgmode.")
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-v)
(define-key org-mode-map (kbd "C-c C-v") nil)
One could also avoid the variables org-C-c-C-v
and org-C-c-C-f
by substituting their values into the first define-key
and by ignoring the value of the original binding for C-c C-f. The variables give you the possibility to easily switch back to the original state without reloading org.
Note that the usage of defvar
is kind of protection of the original binding value. When you have already the modified bindings through running the code once and reevaluate the code the values of org-C-c-C-v
and org-C-c-C-f
are not overwritten by the new bindings because of the special behavior of defvar
(see its doc).
You can switch back to the original bindings with:
(define-key org-mode-map (kbd "C-c C-f") org-C-c-C-f)
(define-key org-mode-map (kbd "C-c C-v") org-C-c-C-v)
edited Apr 16 at 12:12
answered Apr 16 at 12:03
TobiasTobias
15.4k11035
15.4k11035
add a comment |
add a comment |
Thanks for contributing an answer to Emacs Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f48956%2fchanging-the-prefix-of-many-chords%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown