From 218387763810beb90dcd050e6fc3000ca07121cb Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 24 Oct 2024 00:29:50 -0700 Subject: [PATCH] Remove keyboard shortcuts I thought these might make my life easier and my shortcuts a little faster, but they haven't. --- oni-core.el | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/oni-core.el b/oni-core.el index 720d315..a8e993c 100644 --- a/oni-core.el +++ b/oni-core.el @@ -426,24 +426,7 @@ _s_: String list" (global-set-key [remap switch-to-buffer] 'consult-buffer) (global-set-key [remap yank-pop] 'consult-yank-pop) -(global-set-key (kbd "M-0") #'delete-window) -(global-set-key (kbd "C-x 0") (lambda () (interactive) (error "Use M-0 instead"))) -(global-set-key (kbd "M-1") #'delete-other-windows) -(global-set-key (kbd "C-x 1") (lambda () (interactive) (error "Use M-1 instead"))) -(global-set-key (kbd "M-2") #'split-window-below) -(global-set-key (kbd "C-x 2") (lambda () (interactive) (error "Use M-2 instead"))) -(global-set-key (kbd "M-3") #'split-window-right) -(global-set-key (kbd "C-x 3") (lambda () (interactive) (error "Use M-3 instead"))) -(global-set-key (kbd "M-4") #'ctl-x-4-prefix) -(global-set-key (kbd "C-x 4") (lambda () (interactive) (error "Use M-4 instead"))) -(global-set-key (kbd "M-5") #'ctl-x-5-prefix) -(global-set-key (kbd "C-x 5") (lambda () (interactive) (error "Use M-5 instead"))) -(global-set-key (kbd "M-6") #'2C-command) -(global-set-key (kbd "C-x 6") (lambda () (interactive) (error "Use M-6 instead"))) -(global-set-key (kbd "M-8") (keymap-lookup global-map "C-x 8")) -(global-set-key (kbd "C-x 8") (lambda () (interactive) (error "Use M-8 instead"))) - -(global-set-key (kbd "M-8 l") "λ") +(global-set-key (kbd "C-x 8 l") "λ") (defun oni-core-related-files () "Return a list of files related to the current buffer."