2017-10-08 23:34:25 +02:00
|
|
|
;;; ui/window-select/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! switch-window
|
2022-08-12 20:29:19 +02:00
|
|
|
:when (modulep! +switch-window)
|
2018-05-25 00:46:11 +02:00
|
|
|
:defer t
|
2018-01-05 13:16:42 -05:00
|
|
|
:init
|
2019-02-19 15:03:14 -05:00
|
|
|
(global-set-key [remap other-window] #'switch-window)
|
2018-01-05 13:16:42 -05:00
|
|
|
:config
|
2022-05-11 20:27:02 -04:00
|
|
|
(setq switch-window-shortcut-style 'qwerty))
|
2018-01-04 03:24:00 -05:00
|
|
|
|
2018-01-05 13:16:42 -05:00
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! ace-window
|
2022-08-12 20:29:19 +02:00
|
|
|
:unless (modulep! +switch-window)
|
2018-05-25 00:46:11 +02:00
|
|
|
:defer t
|
2018-01-05 13:16:42 -05:00
|
|
|
:init
|
2019-02-19 15:03:14 -05:00
|
|
|
(global-set-key [remap other-window] #'ace-window)
|
2018-01-05 13:16:42 -05:00
|
|
|
:config
|
2022-08-12 20:29:19 +02:00
|
|
|
(unless (modulep! +numbers)
|
2020-02-22 20:40:03 -05:00
|
|
|
(setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l)))
|
|
|
|
(setq aw-scope 'frame
|
2018-01-05 13:16:42 -05:00
|
|
|
aw-background t))
|
2019-05-09 21:39:16 -04:00
|
|
|
|
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! winum
|
2022-08-12 20:29:19 +02:00
|
|
|
:when (modulep! +numbers)
|
2019-11-05 18:46:07 -05:00
|
|
|
:after-call doom-switch-window-hook
|
2019-05-09 21:39:16 -04:00
|
|
|
:config
|
|
|
|
(winum-mode +1)
|
2022-10-22 21:33:13 +02:00
|
|
|
;; winum modifies `mode-line-format' in a destructive manner. I'd rather leave
|
|
|
|
;; it to modeline plugins (or the user) to add this if they want it.
|
|
|
|
(setq winum-auto-setup-mode-line nil)
|
2019-05-09 21:39:16 -04:00
|
|
|
(map! :map evil-window-map
|
|
|
|
"0" #'winum-select-window-0-or-10
|
|
|
|
"1" #'winum-select-window-1
|
|
|
|
"2" #'winum-select-window-2
|
|
|
|
"3" #'winum-select-window-3
|
|
|
|
"4" #'winum-select-window-4
|
|
|
|
"5" #'winum-select-window-5
|
|
|
|
"6" #'winum-select-window-6
|
|
|
|
"7" #'winum-select-window-7
|
|
|
|
"8" #'winum-select-window-8
|
|
|
|
"9" #'winum-select-window-9))
|