From 9ecff448a763a38323a5a79d6983b221a048b771 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 31 May 2024 10:29:11 +0100 Subject: [PATCH] Update avy and org-journal binds Remove most avy binds, remap default goto-char to avy-goto-char. Add M-g j bind to open current journal file --- init.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index 8c2e64c..da7847a 100644 --- a/init.el +++ b/init.el @@ -158,10 +158,7 @@ ("C-c l C-c" . link-hint-copy-all-link))) (use-package avy - :bind (("C-c j j" . avy-goto-char-2) - ("C-c j w" . avy-goto-word-0) - ("C-c j c" . avy-goto-char) - ("C-c j l" . avy-goto-line))) + :bind ((" " . avy-goto-char))) (use-package which-func :init (which-function-mode)) @@ -263,13 +260,15 @@ :bind ((" " . consult-imenu) (" " . consult-buffer) (" " . consult-project-buffer) - (" " . consult-org-heading) ("C-c s l" . consult-line) ("C-c s o" . consult-outline) ("C-c s f" . consult-fd) ("C-c s g" . consult-ripgrep) ("C-c s e" . consult-flymake) ("C-c s i" . consult-info) + :map org-mode-map + (" " . consult-org-heading) + (" " . consult-org-heading) :map minibuffer-local-map ("C-r" . consult-history)) :config (setq completion-in-region-function #'consult-completion-in-region)) @@ -751,6 +750,7 @@ it will be tried first." (use-package org-journal :after org + :bind (("M-g j" . org-journal-open-current-journal-file)) :custom (org-journal-dir (expand-file-name "journal" org-directory)) (org-journal-enable-cache nil)