2018-09-19 21:05:25 +00:00
|
|
|
(use-package ido
|
|
|
|
:config (setq
|
|
|
|
ido-use-virtual-buffers t
|
|
|
|
ido-enable-flex-matching t
|
|
|
|
;; ido-enable-regexp nil
|
|
|
|
ido-case-fold t
|
|
|
|
ido-use-faces nil)
|
|
|
|
:bind (:map ido-common-completion-map
|
|
|
|
("C-n" . ido-next-match)
|
|
|
|
("C-p" . ido-prev-match)
|
|
|
|
("C-x C-p" . ido-toggle-prefix)
|
|
|
|
("M-n" . next-history-element)
|
|
|
|
("M-p" . previous-history-element)
|
|
|
|
("C-l" . cp/ido-toggle-flex)))
|
2016-10-19 11:37:09 +00:00
|
|
|
|
2017-12-31 14:43:17 +00:00
|
|
|
(require 'ido-completing-read+)
|
2016-10-19 11:37:09 +00:00
|
|
|
(ido-ubiquitous-mode 1)
|
2017-05-07 19:15:32 +00:00
|
|
|
(setq completion-styles
|
2018-09-16 18:16:48 +00:00
|
|
|
'(partial-completion initials)
|
2017-05-07 19:15:32 +00:00
|
|
|
completion-cycle-threshold nil)
|
|
|
|
|
|
|
|
(defun cp/ido-toggle-flex ()
|
|
|
|
"Toggle the value of `ido-enable-flex-matching'."
|
|
|
|
(interactive)
|
2018-09-15 12:37:52 +00:00
|
|
|
(setq flx-ido-mode
|
|
|
|
(not flx-ido-mode)))
|
2016-09-29 17:30:42 +00:00
|
|
|
|
2017-05-07 19:15:32 +00:00
|
|
|
;; TODO - something to show documentation for a candidate, instead of
|
|
|
|
;; selecting it.
|
2016-09-29 17:30:42 +00:00
|
|
|
(require 'smex)
|
|
|
|
(global-set-key (kbd "M-x") 'smex)
|
|
|
|
|
2018-09-04 17:07:12 +00:00
|
|
|
(require 'ido-mini)
|
2016-09-29 19:40:20 +00:00
|
|
|
|
|
|
|
(global-set-key (kbd "C-x C-l") 'ido-mini)
|
|
|
|
(ido-vertical-mode 1)
|
|
|
|
|
|
|
|
;; is this being saved by desktop.el and actually being disabled here?
|
|
|
|
;; (toggle-uniquify-buffer-names)
|