summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-03-06 14:58:31 +0800
committerJSDurand <mmemmew@gmail.com>2021-03-06 14:58:31 +0800
commit9557f53e775ffa9e7f86dfa2371b856c60835cca (patch)
tree65c9b87126c9def3f11abe1d3e51d361c241bf93
parent9e053a0dc4b771ef8838ae8e1068c08f1666fd1c (diff)
Disable C-z
It is annoying to press that key-binding by accident, as that will minimize Emacs.
-rw-r--r--basic.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/basic.el b/basic.el
index 0715aea..8a3b12f 100644
--- a/basic.el
+++ b/basic.el
@@ -207,6 +207,10 @@ window, then also delete the selected window."
(define-key global-map (vector ?\M-y) #'yank-pop)
(define-key global-map (vector ?\C-\M-y) #'yank-complete)
+;;; disable C-z. That has been constantly annoying.
+
+(define-key global-map (vector ?\C-z) #'intentionally-disabled-bind)
+
;;; Repeating pops
;;;###autoload