+made my own completion module using ido module
Basically copied the parts I liked of the ido module and removed the parts I didn't.
This commit is contained in:
@@ -12,9 +12,9 @@
|
|||||||
bindings
|
bindings
|
||||||
gentemplate
|
gentemplate
|
||||||
narrow
|
narrow
|
||||||
|
completion
|
||||||
;; (ocaml +lsp)
|
;; (ocaml +lsp)
|
||||||
;; (rss +elfeed)
|
;; (rss +elfeed)
|
||||||
;;(completion)
|
|
||||||
|
|
||||||
:input
|
:input
|
||||||
;;chinese
|
;;chinese
|
||||||
@@ -22,11 +22,11 @@
|
|||||||
|
|
||||||
:completion
|
:completion
|
||||||
(company +childframe) ; the ultimate code completion backend
|
(company +childframe) ; the ultimate code completion backend
|
||||||
;; (ivy
|
;;(ivy
|
||||||
;; +fuzzy
|
;; +fuzzy
|
||||||
;; +icons) ; a search engine for love and life
|
;; +icons) ; a search engine for love and life
|
||||||
;;helm ; the *other* search engine for love and life
|
;;helm ; the *other* search engine for love and life
|
||||||
ido ; the other *other* search engine...
|
;;ido ; the other *other* search engine...
|
||||||
|
|
||||||
:ui
|
:ui
|
||||||
;;deft ; notational velocity for Emacs
|
;;deft ; notational velocity for Emacs
|
||||||
|
|||||||
@@ -1,21 +1,46 @@
|
|||||||
;;; private/completion/config.el -*- lexical-binding: t; -*-
|
;;; private/completion/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(map!
|
(use-package! ido
|
||||||
:map icomplete-minibuffer-map
|
:hook (doom-first-input . ido-mode)
|
||||||
;; unbind anything I want to use for useful stuff
|
:hook (ido-mode . recentf-mode)
|
||||||
"C-j" nil
|
:hook (ido-mode . ido-everywhere)
|
||||||
"C-k" nil
|
:hook (ido-mode . ido-ubiquitous-mode)
|
||||||
"C-b" nil
|
|
||||||
"TAB" nil
|
|
||||||
|
|
||||||
"C-j" #'icomplete-forward-completions
|
:preface
|
||||||
"C-k" #'icomplete-backward-completions
|
(defadvice! +ido-run-hooks-a (&rest _)
|
||||||
"C-n" #'icomplete-forward-completions
|
:after #'ido-mode
|
||||||
"C-p" #'icomplete-backward-completions
|
(run-hooks 'ido-mode-hook))
|
||||||
"TAB" #'icomplete-force-complete
|
|
||||||
"C-b" #'completions)
|
|
||||||
|
|
||||||
(setq icomplete-separator "\t|\t")
|
:init
|
||||||
(setq icomplete-in-buffer t)
|
(setq ido-save-directory-list-file nil)
|
||||||
|
(setq ido-save-directory-list-file nil)
|
||||||
|
(setq ido-ignore-buffers '("\\` " "^\\*ESS\\*" "^\\*[Hh]elp" "^\\*.*Completions\\*$" "^\\*tramp" "^\\*cvs-" "^*Ido"))
|
||||||
|
(setq ido-separator "\n")
|
||||||
|
|
||||||
(add-hook 'doom-first-input-hook #'icomplete-mode)
|
:config
|
||||||
|
(defun +completion/recentf()
|
||||||
|
(interactive)
|
||||||
|
(find-file (completing-read "Recentf: " recentf-list)))
|
||||||
|
(define-key!
|
||||||
|
[remap recentf-open-files] #'+completion/recentf)
|
||||||
|
(map!
|
||||||
|
:map (ido-common-completion-map ido-file-completion-map ido-buffer-completion-map)
|
||||||
|
"C-k" #'ido-prev-match
|
||||||
|
"C-j" #'ido-next-match
|
||||||
|
"TAB" #'ido-exit-minibuffer
|
||||||
|
:map ido-file-completion-map
|
||||||
|
"~" (cmd! (if (looking-back "/" (point-min))
|
||||||
|
(insert "~/")
|
||||||
|
(call-interactively #'self-insert-command)))))
|
||||||
|
|
||||||
|
|
||||||
|
(use-package! ido-sort-mtime
|
||||||
|
:hook (ido-mode . ido-sort-mtime-mode))
|
||||||
|
|
||||||
|
|
||||||
|
(use-package! crm-custom
|
||||||
|
:hook (ido-mode . crm-custom-mode))
|
||||||
|
|
||||||
|
|
||||||
|
(use-package! flx-ido
|
||||||
|
:hook (ido-mode . flx-ido-mode))
|
||||||
|
|||||||
8
Doom/.config/doom/modules/private/completion/packages.el
Normal file
8
Doom/.config/doom/modules/private/completion/packages.el
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; private/completion/packages.el
|
||||||
|
|
||||||
|
|
||||||
|
(package! flx-ido)
|
||||||
|
(package! ido-completing-read+)
|
||||||
|
(package! ido-sort-mtime)
|
||||||
|
(package! crm-custom)
|
||||||
Reference in New Issue
Block a user