mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-16 20:10:58 +01:00
Stupid me!
A couple of years ago I added this hydra and forgone my beloved M-o command to cycle through all windows, because I thought this is better. However, whenever I have more than 2 windows and need to switch, this hydra appears and I hesitate, because the workflow just doesn't fit to my muscle memory for whatever reasons. Now I just added M-o to the list of subcommands which cycles through the windows! Just as in the earlier days! I am so happy with it and in the same time embarrased of myself that I didn't think earlier about this solution!
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
(when (and (fboundp 'windmove-up) (fboundp 'buf-move-up) (fboundp 'defhydra))
|
||||
(defhydra hydra-switch-windows (:color pink: :timeout 2.5)
|
||||
"
|
||||
Switch to buffer: ← ↑ → ↓ | _o_: previous | _f_: flip | MOVE: _u_: up _d_: down _l_: left _r_: right"
|
||||
Switch to buffer: ← ↑ → ↓ | _o_: previous | _f_: flip | MOVE: _u_: up _d_: down _l_: left _r_: right _M-o_: cycle"
|
||||
("<up>" windmove-up nil)
|
||||
("<down>" windmove-down nil)
|
||||
("<left>" windmove-left nil)
|
||||
@@ -85,6 +85,7 @@ Switch to buffer: ← ↑ → ↓ | _o_: previous | _f_: flip | MOVE: _u_: up
|
||||
("d" buf-move-down nil :color blue)
|
||||
("l" buf-move-left nil :color blue)
|
||||
("r" buf-move-right nil :color blue)
|
||||
("M-o" other-window nil :color blue)
|
||||
("q" nil nil :color red))
|
||||
|
||||
;; via [[http://mbork.pl/2017-02-26_other-window-or-switch-buffer][mbork]]
|
||||
|
||||
Reference in New Issue
Block a user