dotemacs/contrapunctus/cp-ido.el

40 lines
1.1 KiB
EmacsLisp
Raw Normal View History

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
(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)
(setq flx-ido-mode
(not flx-ido-mode)))
2017-05-07 19:15:32 +00:00
;; TODO - something to show documentation for a candidate, instead of
;; selecting it.
(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)