How do I add custom hierarchical keybindings?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am looking for a compact way to store a lot of shortcut keybindings. This is my current idea, for which I'm looking for help how to add this into my emacs config:
I would like to make F9
"my" key, that opens up a hierarchical menu of (global) keybindings.
When pressing F9
, I'd like a submenu to open that shows e.g.:
o - org-mode submenu
a - show org-mode agenda
w - org-wiki submenu
b - org-brain submenu
If I press F9-a
, I'd like to directly execute the M-x org-agenda
command.
But by pressing F9-w
, I get a new submenu opened that e.g. shows this:
# Org-wiki submenu
i - Show Wiki index
n - Add new Wiki page
If my final keystroke sequence is F9-w-i
, I want the command M-x org-wiki-index
executed.
- Does something like this exist already?
- Is there a better solution?
- If no, how would I add something like this in my emacs config?
/Edit: I think what I want is to write my custom version of the M-x org-agenda
command.
key-bindings
add a comment |Â
up vote
1
down vote
favorite
I am looking for a compact way to store a lot of shortcut keybindings. This is my current idea, for which I'm looking for help how to add this into my emacs config:
I would like to make F9
"my" key, that opens up a hierarchical menu of (global) keybindings.
When pressing F9
, I'd like a submenu to open that shows e.g.:
o - org-mode submenu
a - show org-mode agenda
w - org-wiki submenu
b - org-brain submenu
If I press F9-a
, I'd like to directly execute the M-x org-agenda
command.
But by pressing F9-w
, I get a new submenu opened that e.g. shows this:
# Org-wiki submenu
i - Show Wiki index
n - Add new Wiki page
If my final keystroke sequence is F9-w-i
, I want the command M-x org-wiki-index
executed.
- Does something like this exist already?
- Is there a better solution?
- If no, how would I add something like this in my emacs config?
/Edit: I think what I want is to write my custom version of the M-x org-agenda
command.
key-bindings
1
Have you looked at hydra? github.com/abo-abo/hydra and available from melpa?
â icarus
28 mins ago
Thanks, that's what I need! I wasn't aware of this package.
â Alexander Engelhardt
19 mins ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am looking for a compact way to store a lot of shortcut keybindings. This is my current idea, for which I'm looking for help how to add this into my emacs config:
I would like to make F9
"my" key, that opens up a hierarchical menu of (global) keybindings.
When pressing F9
, I'd like a submenu to open that shows e.g.:
o - org-mode submenu
a - show org-mode agenda
w - org-wiki submenu
b - org-brain submenu
If I press F9-a
, I'd like to directly execute the M-x org-agenda
command.
But by pressing F9-w
, I get a new submenu opened that e.g. shows this:
# Org-wiki submenu
i - Show Wiki index
n - Add new Wiki page
If my final keystroke sequence is F9-w-i
, I want the command M-x org-wiki-index
executed.
- Does something like this exist already?
- Is there a better solution?
- If no, how would I add something like this in my emacs config?
/Edit: I think what I want is to write my custom version of the M-x org-agenda
command.
key-bindings
I am looking for a compact way to store a lot of shortcut keybindings. This is my current idea, for which I'm looking for help how to add this into my emacs config:
I would like to make F9
"my" key, that opens up a hierarchical menu of (global) keybindings.
When pressing F9
, I'd like a submenu to open that shows e.g.:
o - org-mode submenu
a - show org-mode agenda
w - org-wiki submenu
b - org-brain submenu
If I press F9-a
, I'd like to directly execute the M-x org-agenda
command.
But by pressing F9-w
, I get a new submenu opened that e.g. shows this:
# Org-wiki submenu
i - Show Wiki index
n - Add new Wiki page
If my final keystroke sequence is F9-w-i
, I want the command M-x org-wiki-index
executed.
- Does something like this exist already?
- Is there a better solution?
- If no, how would I add something like this in my emacs config?
/Edit: I think what I want is to write my custom version of the M-x org-agenda
command.
key-bindings
key-bindings
edited 30 mins ago
asked 42 mins ago
Alexander Engelhardt
1436
1436
1
Have you looked at hydra? github.com/abo-abo/hydra and available from melpa?
â icarus
28 mins ago
Thanks, that's what I need! I wasn't aware of this package.
â Alexander Engelhardt
19 mins ago
add a comment |Â
1
Have you looked at hydra? github.com/abo-abo/hydra and available from melpa?
â icarus
28 mins ago
Thanks, that's what I need! I wasn't aware of this package.
â Alexander Engelhardt
19 mins ago
1
1
Have you looked at hydra? github.com/abo-abo/hydra and available from melpa?
â icarus
28 mins ago
Have you looked at hydra? github.com/abo-abo/hydra and available from melpa?
â icarus
28 mins ago
Thanks, that's what I need! I wasn't aware of this package.
â Alexander Engelhardt
19 mins ago
Thanks, that's what I need! I wasn't aware of this package.
â Alexander Engelhardt
19 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
As @icarus suggested, hydra is the way to go here. Check out my solution that is similar to what you want here: https://github.com/jkitchin/scimax/blob/master/scimax-hydra.el
there are submenus of keys that open new hydras. I have mine bound to f12, and then remapped caps lock to be f12. It is convenient for me.
Thanks! I'm actually using it for org-ref now, so double-thanks :) Then org-wiki and/or org-brain.
â Alexander Engelhardt
16 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
As @icarus suggested, hydra is the way to go here. Check out my solution that is similar to what you want here: https://github.com/jkitchin/scimax/blob/master/scimax-hydra.el
there are submenus of keys that open new hydras. I have mine bound to f12, and then remapped caps lock to be f12. It is convenient for me.
Thanks! I'm actually using it for org-ref now, so double-thanks :) Then org-wiki and/or org-brain.
â Alexander Engelhardt
16 mins ago
add a comment |Â
up vote
2
down vote
accepted
As @icarus suggested, hydra is the way to go here. Check out my solution that is similar to what you want here: https://github.com/jkitchin/scimax/blob/master/scimax-hydra.el
there are submenus of keys that open new hydras. I have mine bound to f12, and then remapped caps lock to be f12. It is convenient for me.
Thanks! I'm actually using it for org-ref now, so double-thanks :) Then org-wiki and/or org-brain.
â Alexander Engelhardt
16 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
As @icarus suggested, hydra is the way to go here. Check out my solution that is similar to what you want here: https://github.com/jkitchin/scimax/blob/master/scimax-hydra.el
there are submenus of keys that open new hydras. I have mine bound to f12, and then remapped caps lock to be f12. It is convenient for me.
As @icarus suggested, hydra is the way to go here. Check out my solution that is similar to what you want here: https://github.com/jkitchin/scimax/blob/master/scimax-hydra.el
there are submenus of keys that open new hydras. I have mine bound to f12, and then remapped caps lock to be f12. It is convenient for me.
answered 21 mins ago
John Kitchin
5,3651520
5,3651520
Thanks! I'm actually using it for org-ref now, so double-thanks :) Then org-wiki and/or org-brain.
â Alexander Engelhardt
16 mins ago
add a comment |Â
Thanks! I'm actually using it for org-ref now, so double-thanks :) Then org-wiki and/or org-brain.
â Alexander Engelhardt
16 mins ago
Thanks! I'm actually using it for org-ref now, so double-thanks :) Then org-wiki and/or org-brain.
â Alexander Engelhardt
16 mins ago
Thanks! I'm actually using it for org-ref now, so double-thanks :) Then org-wiki and/or org-brain.
â Alexander Engelhardt
16 mins ago
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f45743%2fhow-do-i-add-custom-hierarchical-keybindings%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
Have you looked at hydra? github.com/abo-abo/hydra and available from melpa?
â icarus
28 mins ago
Thanks, that's what I need! I wasn't aware of this package.
â Alexander Engelhardt
19 mins ago