[window-numbering] use Ctrl rather than Meta bindings

Since I've configured Space to emit Ctrl when held (using kmonad),
Ctrl bindings are more efficient than Meta bindings.
This commit is contained in:
contrapunctus 2021-07-26 17:10:20 +05:30
parent 73a2ce45f4
commit ac68b41bfd
1 changed files with 16 additions and 4 deletions

View File

@ -1900,9 +1900,7 @@ Don't try to check if there are files with a certain extension...it will lead to
#+END_SRC
** Navigation
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "~/.emacs.d/elisp-git/window-numbering/")
#+BEGIN_SRC emacs-lisp :load yes
;; Vim-style prompt-less tag jumping
;; http://stackoverflow.com/questions/12074897/automatically-jump-to-tag-in-emacs
(global-unset-key (kbd "M-t"))
@ -2013,7 +2011,21 @@ Don't try to check if there are files with a certain extension...it will lead to
;; ;(setq win-switch-other-window-first nil)
(use-package window-numbering
:init (window-numbering-mode 1))
: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)
("C-7" . select-window-7)
("C-8" . select-window-8)
("C-9" . select-window-9)))
(defun cp-maximize-window ()
"Run maximize-window if more than one window is present."