From 5bf6d429aaf921c3ac08cbf9a9e55f99aefa8389 Mon Sep 17 00:00:00 2001 From: dx Date: Sun, 31 May 2020 15:38:52 +0100 Subject: ~icomplete module -> completion module --- Doom/.doom.d/modules/private/completion/config.el | 24 ++++++++++++++++++++++ .../.doom.d/modules/private/completion/packages.el | 12 +++++++++++ Doom/.doom.d/modules/private/icomplete/config.el | 21 ------------------- 3 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 Doom/.doom.d/modules/private/completion/config.el create mode 100644 Doom/.doom.d/modules/private/completion/packages.el delete mode 100644 Doom/.doom.d/modules/private/icomplete/config.el (limited to 'Doom') diff --git a/Doom/.doom.d/modules/private/completion/config.el b/Doom/.doom.d/modules/private/completion/config.el new file mode 100644 index 0000000..bd1b022 --- /dev/null +++ b/Doom/.doom.d/modules/private/completion/config.el @@ -0,0 +1,24 @@ +;;; private/completion/config.el -*- lexical-binding: t; -*- + +(map! + :map icomplete-minibuffer-map + ;; unbind anything I want to use for useful stuff + "C-j" nil + "C-k" nil + "C-b" nil + "TAB" nil + + "C-j" #'icomplete-forward-completions + "C-k" #'icomplete-backward-completions + "C-n" #'icomplete-forward-completions + "C-p" #'icomplete-backward-completions + "TAB" #'icomplete-force-complete + "C-b" #'completions) + +(setq icomplete-separator "\t|\t") +(setq icomplete-in-buffer t) + +(after! projectile + (setq projectile-completion-system 'default)) + +(add-hook 'doom-first-input-hook #'icomplete-mode) diff --git a/Doom/.doom.d/modules/private/completion/packages.el b/Doom/.doom.d/modules/private/completion/packages.el new file mode 100644 index 0000000..8a52b73 --- /dev/null +++ b/Doom/.doom.d/modules/private/completion/packages.el @@ -0,0 +1,12 @@ +;; -*- no-byte-compile: t; -*- +;;; private/completion/packages.el + +(package! ivy) +(package! swiper) +(package! counsel) +(package! amx) +;; (package! counsel-projectile) +;; (package! ivy-rich) +;; (package! wgrep) +;; (package! flx :pin "17f5c9cb2af18aa6f52910ff4a5a63591261ced5") +;; (package! all-the-icons-ivy) diff --git a/Doom/.doom.d/modules/private/icomplete/config.el b/Doom/.doom.d/modules/private/icomplete/config.el deleted file mode 100644 index a726491..0000000 --- a/Doom/.doom.d/modules/private/icomplete/config.el +++ /dev/null @@ -1,21 +0,0 @@ -;;; private/fido/config.el -*- lexical-binding: t; -*- - -(map! - :map icomplete-minibuffer-map - ;; unbind anything I want to use for useful stuff - "C-j" nil - "C-k" nil - "C-b" nil - "TAB" nil - - "C-j" #'icomplete-forward-completions - "C-k" #'icomplete-backward-completions - "C-n" #'icomplete-forward-completions - "C-p" #'icomplete-backward-completions - "TAB" #'icomplete-force-complete - "C-b" #'completions) - -(setq icomplete-separator "\t|\t") -(setq icomplete-in-buffer t) - -(icomplete-mode +1) -- cgit v1.2.3-13-gbd6f