Assimilate org-tanglesync af83a73
[~bandali/configs] / lisp / bandali-ido.el
CommitLineData
679463c6
AB
1(use-package ido
2 :demand
3 :bind
4 (:map ido-common-completion-map
5 ([escape] . minibuffer-keyboard-quit)
6 ("DEL" . b/ido-backspace))
7 :config
8 (require 'delsel)
9 (defun b/ido-backspace ()
10 "Forward to `backward-delete-char'. On error (read-only), quit."
11 (interactive)
12 (condition-case nil
13 (backward-delete-char 1)
14 (error
15 (minibuffer-keyboard-quit))))
16 (ido-mode 1)
17 (ido-everywhere 1)
18 :custom
19 (ido-enable-flex-matching t)
20 ;; (ido-enable-regexp t)
21 ;; (ido-enable-prefix t)
22 (ido-max-window-height 10)
23 (ido-use-virtual-buffers t))
24
25(use-package ido-vertical-mode
26 :defer 0.3
27 :config
28 (ido-vertical-mode 1)
29 :custom
30 (ido-vertical-define-keys 'C-n-C-p-up-and-down)
31 (ido-vertical-show-count t))
32
33(use-package ido-completing-read+
34 :defer 0.3
35 :after ido
36 :config
37 (ido-ubiquitous-mode 1))
38
39(use-package crm-custom
40 :defer 0.3
41 :config
42 (crm-custom-mode 1))
43
44(use-package icomplete
45 :defer 0.3
46 :config
47 (icomplete-mode 1))
48
49(provide 'bandali-ido)