From 8a24fef78c7998bafbcdbfe923543941913c5561 Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Fri, 22 Jul 2022 00:40:26 +0530 Subject: [PATCH] Move window-numbering to its own section --- init.org | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/init.org b/init.org index 36b3caf..eaa37cf 100644 --- a/init.org +++ b/init.org @@ -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