feat: Use ace-window for jumping between windows
This commit is contained in:
parent
b7a5dd0c1b
commit
eb67c739b2
4 changed files with 8 additions and 1 deletions
1
init.el
1
init.el
|
@ -22,6 +22,7 @@
|
|||
|
||||
;; editor packages
|
||||
ace-jump-mode
|
||||
ace-window
|
||||
ag
|
||||
browse-kill-ring
|
||||
cargo
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
(global-set-key (kbd "M-j") 'ace-jump-word-mode)
|
||||
(global-set-key (kbd "M-p") 'ace-jump-mode-pop-mark)
|
||||
|
||||
(global-set-key (kbd "C-x o") ; Yes, I went there!
|
||||
'ace-window)
|
||||
|
||||
;; Window switching. (C-x o goes to the next window)
|
||||
(windmove-default-keybindings) ;; Shift+direction
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
'(ns-right-command-modifier (quote meta))
|
||||
'(package-selected-packages
|
||||
(quote
|
||||
(exwm which-key pandoc elnode fish-mode nix-mode yaml-mode undo-tree terraform-mode switch-window smart-mode-line rust-mode rainbow-mode rainbow-delimiters puppet-mode pkgbuild-mode password-store paredit multi-term multiple-cursors markdown-mode+ magit iy-go-to-char idle-highlight-mode hi2 helm haskell-mode gruber-darker-theme go-mode flycheck erlang dockerfile-mode confluence browse-kill-ring ag ace-jump-mode)))
|
||||
(ace-window exwm which-key pandoc elnode fish-mode nix-mode yaml-mode undo-tree terraform-mode switch-window smart-mode-line rust-mode rainbow-mode rainbow-delimiters puppet-mode pkgbuild-mode password-store paredit multi-term multiple-cursors markdown-mode+ magit iy-go-to-char idle-highlight-mode hi2 helm haskell-mode gruber-darker-theme go-mode flycheck erlang dockerfile-mode confluence browse-kill-ring ag ace-jump-mode)))
|
||||
'(require-final-newline (quote visit-save)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
|
|
|
@ -58,4 +58,7 @@
|
|||
;; Show available key chord completions
|
||||
(which-key-mode t)
|
||||
|
||||
;; Show previews of ace-window numbers in the mode line for each window.
|
||||
(ace-window-display-mode)
|
||||
|
||||
(provide 'modes)
|
||||
|
|
Loading…
Reference in a new issue