Move window-numbering to its own section

This commit is contained in:
contrapunctus 2022-07-22 00:40:26 +05:30
parent 88702cd3b9
commit 8a24fef78c
1 changed files with 25 additions and 19 deletions

View File

@ -3931,25 +3931,6 @@ But with =initials=, the desired completion is often buried in the results. That
;; (setq win-switch-other-window-first nil)
;; ;(setq win-switch-other-window-first nil)
(use-package window-numbering
:ensure t
:commands (window-numbering-mode)
:init (window-numbering-mode 1)
:bind (:map window-numbering-keymap
("M-1" . nil) ("M-2" . nil) ("M-3" . nil)
("M-4" . nil) ("M-5" . nil) ("M-6" . nil)
("M-7" . nil) ("M-8" . nil) ("M-9" . nil)
("C-1" . select-window-1)
("C-2" . select-window-2)
("C-3" . select-window-3)
("C-4" . select-window-4)
("C-5" . select-window-5)
("C-6" . select-window-6)
;; for one-handed operation with the right hand
("C-7" . select-window-1)
("C-8" . select-window-2)
("C-9" . select-window-3)))
(defun cp-maximize-window ()
"Run maximize-window if more than one window is present."
(interactive)
@ -3978,6 +3959,31 @@ But with =initials=, the desired completion is often buried in the results. That
(setq avy-case-fold-search nil))
#+END_SRC
** window-numbering
:PROPERTIES:
:CUSTOM_ID: window-numbering
:END:
#+BEGIN_SRC emacs-lisp
(use-package window-numbering
:ensure t
:commands (window-numbering-mode)
:init (window-numbering-mode 1)
:bind (:map window-numbering-keymap
("M-1" . nil) ("M-2" . nil) ("M-3" . nil)
("M-4" . nil) ("M-5" . nil) ("M-6" . nil)
("M-7" . nil) ("M-8" . nil) ("M-9" . nil)
("C-1" . select-window-1)
("C-2" . select-window-2)
("C-3" . select-window-3)
("C-4" . select-window-4)
("C-5" . select-window-5)
("C-6" . select-window-6)
;; for one-handed operation with the right hand
("C-7" . select-window-1)
("C-8" . select-window-2)
("C-9" . select-window-3)))
#+END_SRC
** ido-mini :disabled:buffer:file:
:PROPERTIES:
:CUSTOM_ID: ido-mini