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
This commit is contained in:
parent
da57caeae5
commit
9ecff448a7
10
init.el
10
init.el
|
@ -158,10 +158,7 @@
|
||||||
("C-c l C-c" . link-hint-copy-all-link)))
|
("C-c l C-c" . link-hint-copy-all-link)))
|
||||||
|
|
||||||
(use-package avy
|
(use-package avy
|
||||||
:bind (("C-c j j" . avy-goto-char-2)
|
:bind (("<remap> <goto-char>" . avy-goto-char)))
|
||||||
("C-c j w" . avy-goto-word-0)
|
|
||||||
("C-c j c" . avy-goto-char)
|
|
||||||
("C-c j l" . avy-goto-line)))
|
|
||||||
|
|
||||||
(use-package which-func
|
(use-package which-func
|
||||||
:init (which-function-mode))
|
:init (which-function-mode))
|
||||||
|
@ -263,13 +260,15 @@
|
||||||
:bind (("<remap> <imenu>" . consult-imenu)
|
:bind (("<remap> <imenu>" . consult-imenu)
|
||||||
("<remap> <switch-to-buffer>" . consult-buffer)
|
("<remap> <switch-to-buffer>" . consult-buffer)
|
||||||
("<remap> <project-switch-to-buffer>" . consult-project-buffer)
|
("<remap> <project-switch-to-buffer>" . consult-project-buffer)
|
||||||
("<remap> <org-goto>" . consult-org-heading)
|
|
||||||
("C-c s l" . consult-line)
|
("C-c s l" . consult-line)
|
||||||
("C-c s o" . consult-outline)
|
("C-c s o" . consult-outline)
|
||||||
("C-c s f" . consult-fd)
|
("C-c s f" . consult-fd)
|
||||||
("C-c s g" . consult-ripgrep)
|
("C-c s g" . consult-ripgrep)
|
||||||
("C-c s e" . consult-flymake)
|
("C-c s e" . consult-flymake)
|
||||||
("C-c s i" . consult-info)
|
("C-c s i" . consult-info)
|
||||||
|
:map org-mode-map
|
||||||
|
("<remap> <imenu>" . consult-org-heading)
|
||||||
|
("<remap> <org-goto>" . consult-org-heading)
|
||||||
:map minibuffer-local-map
|
:map minibuffer-local-map
|
||||||
("C-r" . consult-history))
|
("C-r" . consult-history))
|
||||||
:config (setq completion-in-region-function #'consult-completion-in-region))
|
:config (setq completion-in-region-function #'consult-completion-in-region))
|
||||||
|
@ -751,6 +750,7 @@ it will be tried first."
|
||||||
|
|
||||||
(use-package org-journal
|
(use-package org-journal
|
||||||
:after org
|
:after org
|
||||||
|
:bind (("M-g j" . org-journal-open-current-journal-file))
|
||||||
:custom
|
:custom
|
||||||
(org-journal-dir (expand-file-name "journal" org-directory))
|
(org-journal-dir (expand-file-name "journal" org-directory))
|
||||||
(org-journal-enable-cache nil)
|
(org-journal-enable-cache nil)
|
||||||
|
|
Loading…
Reference in a new issue