From 1bbb1f1d41ead1d3fed5af965ae48f27f2f82ad5 Mon Sep 17 00:00:00 2001 From: dx Date: Sun, 14 Jun 2020 01:03:27 +0100 Subject: +config for counsel and ido --- Doom/.doom.d/org/config.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Doom/.doom.d') diff --git a/Doom/.doom.d/org/config.org b/Doom/.doom.d/org/config.org index 2d2eacd..bb815a9 100644 --- a/Doom/.doom.d/org/config.org +++ b/Doom/.doom.d/org/config.org @@ -222,6 +222,17 @@ Add keybind to recompile (inside the buffer) 'company-mode-hook #'(lambda () (setq company-frontends '(company-preview-frontend company-pseudo-tooltip-frontend)))) #+END_SRC +** Counsel and Ido +#+BEGIN_SRC elisp +(map! + :map ivy-minibuffer-map + "C-j" #'ivy-next-line-or-history + "C-k" #'ivy-previous-line-or-history + :map (ido-common-completion-map ido-file-dir-completion-map) + "C-j" #'ido-next-match + "C-k" #'ido-prev-match + "TAB" #'ido-complete) +#+END_SRC * Language Config Configuration for various languages which I feel can be useful ** C-style languages @@ -361,7 +372,6 @@ General keymap #+BEGIN_SRC elisp (map! :leader - :after counsel ; Counsel or ivy (:prefix ("s" . "search") :desc "RipGrep!" "r" #'counsel-rg ; Ripgrep is faster than Ag in most cases and makes me feel cool :desc "Search Tags" "t" #'counsel-etags-find-tag)); is quicker to do than /b, for something that is done so often -- cgit v1.2.3-13-gbd6f