deb0ch / emacs-winum

Window numbers for Emacs - Navigate windows and frames using numbers
143 stars 13 forks source link

rebind window 0 to key 1 #26

Open pengu10 opened 4 years ago

pengu10 commented 4 years ago

Hello How can i bind window 0 to key map 1? i tried putting this in my .spacemacs and & .emacs files but its not working, what am i doing wrong

modified version of https://github.com/deb0ch/emacs-winum#keybindings with window 0 set to key 1

(setq winum-keymap
    (let ((map (make-sparse-keymap)))
      (define-key map (kbd "C-`") 'winum-select-window-by-number)
      (define-key map (kbd "C-²") 'winum-select-window-by-number)
      (define-key map (kbd "1") 'winum-select-window-0-or-10)
      (define-key map (kbd "2") 'winum-select-window-1)
      (define-key map (kbd "3") 'winum-select-window-2)
      (define-key map (kbd "4") 'winum-select-window-3)
      (define-key map (kbd "5") 'winum-select-window-4)
      (define-key map (kbd "6") 'winum-select-window-5)
      (define-key map (kbd "7") 'winum-select-window-6)
      (define-key map (kbd "8") 'winum-select-window-7)
      (define-key map (kbd "9") 'winum-select-window-8)
      map))

(require 'winum)

(winum-mode)
pengu10 commented 4 years ago

this project is dead

Inc0n commented 3 years ago

From what I can tell you seemed to be using the wrong keymap variable. winum-base-map.