Fixed keybindings

This commit is contained in:
Aleksandr Lebedev 2025-09-11 15:56:55 +02:00
parent 98ebee89c6
commit 220ec32d43

View file

@ -148,7 +148,7 @@
(global-set-key (kbd "C-c o m") 'magit) (global-set-key (kbd "C-c o m") 'magit)
(global-set-key (kbd "C-.") 'kylekrein/duplicate-line) (global-set-key (kbd "C-.") 'kylekrein/duplicate-line)
(windmove-default-keybindings) ;; move between windows with S-<left>, S-<right>, S-<up>, S-<down> ;;(windmove-default-keybindings) ;; move between windows with S-<left>, S-<right>, S-<up>, S-<down>
#+end_src #+end_src
** Focus new windows ** Focus new windows
Found this [[https://emacs.stackexchange.com/questions/21770/automatically-switch-focus-to-new-window][here]] and [[https://github.com/snackon/Witchmacs#creating-a-new-window-switches-your-cursor-to-it][here]] Found this [[https://emacs.stackexchange.com/questions/21770/automatically-switch-focus-to-new-window][here]] and [[https://github.com/snackon/Witchmacs#creating-a-new-window-switches-your-cursor-to-it][here]]
@ -1710,12 +1710,16 @@ one, an error is signaled."
(select-window other-win)))) (select-window other-win))))
#+end_src #+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package windmove (use-package windmove
:bind :bind
(("<C-M-S-up>" . buf-move-up) (("<C-up>" . windmove-up)
("<C-M-S-down>" . buf-move-down) ("<C-down>" . windmove-down)
("<C-M-S-left>" . buf-move-left) ("<C-left>" . windmove-left)
("<C-M-S-right>" . buf-move-right))) ("<C-right>" . windmove-right)
("<C-M-S-up>" . buf-move-up)
("<C-M-S-down>" . buf-move-down)
("<C-M-S-left>" . buf-move-left)
("<C-M-S-right>" . buf-move-right)))
#+end_src #+end_src
* Completions * Completions
** Corfu ** Corfu