aboutsummaryrefslogtreecommitdiffstats
path: root/oni-core.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-01-24 10:04:39 -0800
committerGravatar Tom Willemse2023-01-24 10:04:39 -0800
commit5d7b20598bc9357609e576f10b9e597870d71078 (patch)
tree3869ece2d7b47265bdc22c652582b08a76d02e21 /oni-core.el
parent37fe64b4d8023020548cb580a3bccc97e142f137 (diff)
downloademacs-config-5d7b20598bc9357609e576f10b9e597870d71078.tar.gz
emacs-config-5d7b20598bc9357609e576f10b9e597870d71078.zip
[oni-core] Sort keybindings, add ace window keybindingss
Diffstat (limited to 'oni-core.el')
-rw-r--r--oni-core.el14
1 files changed, 8 insertions, 6 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 (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 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 "M-g M") '("Jump to a mark anywhere" . consult-global-mark))
(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."