aboutsummaryrefslogtreecommitdiff
path: root/Doom/.doom.d/modules/private/completion/config.el
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-31 15:38:52 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-31 15:38:52 +0100
commit5bf6d429aaf921c3ac08cbf9a9e55f99aefa8389 (patch)
tree9f91c6db5e1fe220cca1f9959a964d716c931bde /Doom/.doom.d/modules/private/completion/config.el
parent6c262a85bc5b806797de340883becc7796334823 (diff)
downloaddotfiles-5bf6d429aaf921c3ac08cbf9a9e55f99aefa8389.tar.gz
dotfiles-5bf6d429aaf921c3ac08cbf9a9e55f99aefa8389.tar.bz2
dotfiles-5bf6d429aaf921c3ac08cbf9a9e55f99aefa8389.zip
~icomplete module -> completion module
Diffstat (limited to 'Doom/.doom.d/modules/private/completion/config.el')
-rw-r--r--Doom/.doom.d/modules/private/completion/config.el24
1 files changed, 24 insertions, 0 deletions
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)