Use default keybindings for window management to avoid so many conflicts

This commit is contained in:
Joseph Ferano 2023-02-16 10:11:18 +07:00
parent 5acad4430a
commit 4177abd96a

View File

@ -586,19 +586,12 @@ weren't working, until I randomly saw this in someone's init.el
(kbd "<leader>cy") 'consult-yank-from-kill-ring
(kbd "<leader>cg") 'consult-ripgrep
(kbd "<leader>cF") 'consult-find
(kbd "<leader>co") 'consult-outline
;; (kbd "<leader>ee") 'flymake-mode
(kbd "C-h") 'evil-window-left
(kbd "C-j") 'evil-window-down
(kbd "C-k") 'evil-window-up
(kbd "C-l") 'evil-window-right)))
(kbd "<leader>co") 'consult-outline)))
;; (define-prefix-command 'evil-consult-map)
;; (define-key evil-consult-map "b" 'evil-window-bottom-right)
;; (define-key evil-consult-map "c" 'evil-window-delete)
(evil-global-set-key 'normal (kbd "C-w") 'save-buffer)
(defvar global-evil-leader-map (make-sparse-keymap))
(evil-define-key 'normal 'global-evil-leader-map (kbd "SPC") 'evil-send-leader)
@ -626,9 +619,8 @@ weren't working, until I randomly saw this in someone's init.el
(setq evil-goggles-pulse t)
(setq evil-goggles-async-duration 0.55)
(evil-global-set-key 'normal (kbd "<leader>w") 'evil-window-map)
(define-key evil-window-map "u" #'winner-undo)
(define-key evil-window-map "U" #'winner-redo)
(defun joe/scroll-up-line () (interactive) (scroll-up-line 2))
(defun joe/scroll-down-line () (interactive) (scroll-down-line 2))
@ -699,10 +691,10 @@ The theme of `C-x 4` bindings is that they operate on other windows, so this fun
(global-set-key (kbd "C-x o") #'ace-window)
(global-set-key (kbd "C-x C-o") #'ace-swap-window)
(global-set-key (kbd "C-c h") #'windmove-left)
(global-set-key (kbd "C-c l") #'windmove-right)
(global-set-key (kbd "C-c k") #'windmove-up)
(global-set-key (kbd "C-c j") #'windmove-down)
(global-set-key (kbd "s-h") #'windmove-left)
(global-set-key (kbd "s-l") #'windmove-right)
(global-set-key (kbd "s-k") #'windmove-up)
(global-set-key (kbd "s-j") #'windmove-down)
#+end_src
*** Popper