From 5d7b20598bc9357609e576f10b9e597870d71078 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 24 Jan 2023 10:04:39 -0800 Subject: [PATCH] [oni-core] Sort keybindings, add ace window keybindingss --- oni-core.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/oni-core.el b/oni-core.el index 9ba6943..8bf8f7e 100644 --- a/oni-core.el +++ b/oni-core.el @@ -397,15 +397,17 @@ _s_: String list" ;;; Consult -(global-set-key [remap switch-to-buffer] 'consult-buffer) -(global-set-key [remap projectile-switch-to-buffer] 'consult-project-buffer) -(global-set-key [remap project-switch-to-buffer] 'consult-project-buffer) -(global-set-key [remap bookmark-jump] 'consult-bookmark) -(global-set-key [remap yank-pop] 'consult-yank-pop) -(global-set-key [remap goto-line] 'consult-goto-line) -(global-set-key (kbd "M-g m") '("Jump to a mark" . consult-mark)) +(global-set-key (kbd "C-c w d") '("Delete a window" . ace-delete-window)) +(global-set-key (kbd "C-c w k") '("Keep a single window" . ace-delete-other-windows)) (global-set-key (kbd "M-g M") '("Jump to a mark anywhere" . consult-global-mark)) +(global-set-key (kbd "M-g m") '("Jump to a mark" . consult-mark)) +(global-set-key [remap bookmark-jump] 'consult-bookmark) +(global-set-key [remap goto-line] 'consult-goto-line) (global-set-key [remap imenu] 'consult-imenu) +(global-set-key [remap project-switch-to-buffer] 'consult-project-buffer) +(global-set-key [remap projectile-switch-to-buffer] 'consult-project-buffer) +(global-set-key [remap switch-to-buffer] 'consult-buffer) +(global-set-key [remap yank-pop] 'consult-yank-pop) (defun oni-core-related-files () "Return a list of files related to the current buffer."