summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-03 23:31:36 +0100
committerjao <jao@gnu.org>2022-09-03 23:31:36 +0100
commit828ce8884b79579919a7ee895c1d3bb148d39de3 (patch)
treed9ccb91a300969e153e5fa9d88a7ddb43d1bc59b
parent1f6ca44844745f469704e778730d685e3f87fb98 (diff)
downloadelibs-828ce8884b79579919a7ee895c1d3bb148d39de3.tar.gz
elibs-828ce8884b79579919a7ee895c1d3bb148d39de3.tar.bz2
C-c h only for comint and eshell
-rw-r--r--custom/jao-custom-completion.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el
index 3977167..804e049 100644
--- a/custom/jao-custom-completion.el
+++ b/custom/jao-custom-completion.el
@@ -221,14 +221,13 @@
("C-x C-b" . consult-buffer)
("C-x 4 b" . consult-buffer-other-window)
("C-c b" . project-find-file)
- ("C-c h" . consult-history)
+ ("C-c h" . nil)
("C-c i" . consult-imenu)
("C-c I" . consult-project-imenu)
;; ("C-c o" . consult-outline)
("C-c k" . consult-ripgrep)
("C-c K" . consult-git-grep)
("C-c L" . consult-locate)
- ;; ("C-h m" . consult-mode-command)
("C-c s" . consult-line)
("C-x r x" . consult-register)
("C-x r b" . consult-bookmark)
@@ -237,8 +236,6 @@
("M-g m" . consult-mark)
("M-g e" . consult-error)
("M-s m" . consult-multi-occur)
- ;; ("M-o" . consult-outline)
- ;; ("M-i" . consult-imenu)
("M-y" . consult-yank-pop)
("C-s" . isearch-forward)
("<help> a" . consult-apropos))
@@ -257,6 +254,12 @@
(define-key consult-narrow-map (vconcat consult-narrow-key "?")
#'consult-narrow-help)
+ (with-eval-after-load "eshell"
+ (define-key eshell-mode-map (kbd "C-c h") #'consult-history))
+
+ (with-eval-after-load "comint"
+ (define-key comint-mode-map (kbd "C-c h") #'consult-history))
+
(consult-customize consult-mark :preview-key 'any)
(add-hook 'completion-list-mode-hook #'consult-preview-at-point-mode))