blob: 55bc937596551502b76d39b4c76cc96eeded3b79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
;;; bandali-ido.el --- bandali's Ido setup -*- lexical-binding: t; -*-
;; Copyright (C) 2018-2020 Amin Bandali
;; Author: Amin Bandali <bandali@gnu.org>
;; Keywords: convenience, matching
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; My (currently unused) Ido setup.
;;; Code:
(use-package ido
:demand
:bind
(:map ido-common-completion-map
([escape] . minibuffer-keyboard-quit)
("DEL" . b/ido-backspace))
:config
(require 'delsel)
(defun b/ido-backspace ()
"Forward to `backward-delete-char'. On error (read-only), quit."
(interactive)
(condition-case nil
(backward-delete-char 1)
(error
(minibuffer-keyboard-quit))))
(ido-mode 1)
(ido-everywhere 1)
:custom
(ido-enable-flex-matching t)
;; (ido-enable-regexp t)
;; (ido-enable-prefix t)
(ido-max-window-height 10)
(ido-use-virtual-buffers t))
(use-package ido-vertical-mode
:defer 0.3
:config
(ido-vertical-mode 1)
:custom
(ido-vertical-define-keys 'C-n-C-p-up-and-down)
(ido-vertical-show-count t))
(use-package ido-completing-read+
:defer 0.3
:after ido
:config
(ido-ubiquitous-mode 1))
(use-package crm-custom
:defer 0.3
:config
(crm-custom-mode 1))
(use-package icomplete
:defer 0.3
:config
(icomplete-mode 1))
(provide 'bandali-ido)
;;; bandali-ido.el ends here
|