2018-09-19 21:05:25 +00:00
|
|
|
(use-package ido
|
2019-10-26 04:27:51 +00:00
|
|
|
:disabled
|
2019-10-22 01:26:53 +00:00
|
|
|
:config (setq ido-use-virtual-buffers t
|
|
|
|
ido-enable-flex-matching t
|
|
|
|
;; ido-enable-regexp nil
|
|
|
|
ido-case-fold t
|
|
|
|
ido-use-faces nil)
|
2020-04-23 14:11:53 +00:00
|
|
|
(ido-vertical-mode 1)
|
2019-10-22 01:26:53 +00:00
|
|
|
(ido-ubiquitous-mode 1)
|
2018-09-19 21:05:25 +00:00
|
|
|
: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
|
|
|
|
2019-10-22 01:26:53 +00:00
|
|
|
(use-package ido-completing-read+
|
2019-10-26 04:27:51 +00:00
|
|
|
:disabled
|
2019-10-22 01:26:53 +00:00
|
|
|
:commands ido-ubiquitous-mode)
|
2017-05-07 19:15:32 +00:00
|
|
|
|
|
|
|
(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.
|
2019-10-22 01:26:53 +00:00
|
|
|
(use-package smex
|
2019-10-26 04:27:51 +00:00
|
|
|
:disabled
|
2019-10-22 01:26:53 +00:00
|
|
|
:bind ("M-x" . smex))
|
2016-09-29 19:40:20 +00:00
|
|
|
|
2020-04-23 11:12:28 +00:00
|
|
|
;; This creates a bug with shell completion if you're using ivy mode.
|
|
|
|
(unless (bound-and-true-p ivy-mode)
|
|
|
|
(setq completion-styles
|
|
|
|
'(partial-completion initials)
|
|
|
|
completion-cycle-threshold nil))
|
2016-09-29 19:40:20 +00:00
|
|
|
|
|
|
|
;; is this being saved by desktop.el and actually being disabled here?
|
|
|
|
;; (toggle-uniquify-buffer-names)
|
2020-04-23 08:49:58 +00:00
|
|
|
|
|
|
|
(provide 'cp-ido)
|