|
From: | Juri Linkov |
Subject: | Re: Opening Up More Keymaps Re: Standardizing more key bindings? |
Date: | Sun, 04 Oct 2020 22:34:23 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> To be not so disruptive that's why I think that C-z C-z is the most > conservative alternative. This is what I successfully used for many years to dedicate the whole C-z kemap to user-defined keys while keeping suspend-frame on C-z C-z: #+begin_src emacs-lisp (defvar my-map (let ((map (make-sparse-keymap)) (old (global-key-binding "\C-z"))) (global-unset-key "\C-z") (define-key global-map "\C-z" map) (define-key map "\C-z" old) map)) #+end_src And when cua-mode is enabled, C-z is bound to undo.
[Prev in Thread] | Current Thread | [Next in Thread] |