How to Move to Any Buffer

Asked 1 years ago, Updated 1 years ago, 81 views

With so many windows open, it can be troublesome to do C-xo again and again until you reach the window you want to go to.

So I dream of having the following functions, but is there any elisp that has been realized?

emacs

2022-09-29 21:23

1 Answers

Why don't you add the following settings to .emacs?

;(1) Change the color of the mode line
(set-face-background'mode-line "black")
(set-face-foreground'mode-line "gray95")
;; (2) Move the window with Shift+←→↑↓
(windmove-default-keybindings)
( setq windmove-wrap-around t ) to allow end-to-end movement

The mode line of the active buffer is highlighted black.
You can change the color scheme according to your preference by referring to M-x list-colors-display.

The built-in library's windmove features are available for window movement.
By default, Shift+←Shift+→Shift+↑Shift+↓ is assigned as the moving key.
Please refer to EmacsWiki for detailed explanations and configuration instructions.
https://www.emacswiki.org/emacs/WindMove


2022-09-29 21:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.