Avoiding overlapped keybindings in emacs?

后端 未结 3 985
北海茫月
北海茫月 2020-12-20 03:18

I have done some searching around and can not quite find what I am looking for so I figured I would ask. This could be due to not using the right terms however.

I a

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-20 03:49

    I personally use C-' as my 'leader key' for my personal keybinding map. You can create the prefix and bind keys to it like so:

    (global-set-key (kbd "C-'") ctl-quote-map)
    (define-key ctl-quote-map (kbd "C-p") 'stumpwm-move-window-up)
    (define-key ctl-quote-map (kbd "C-n") 'stumpwm-move-window-down)
    (define-key ctl-quote-map (kbd "C-f") 'stumpwm-move-window-right)
    (define-key ctl-quote-map (kbd "C-b") 'stumpwm-move-window-left)
    (define-key ctl-quote-map (kbd "r") 'stumpwm-interactive-resize-window)
    

    Nobbody steps over something that obscure, and if you use the left control it's a balanced double pinky motion. C-; is also good, which is what I use for the stumpwm escape key.

提交回复
热议问题