Exploring Emacs Completion Styles

News

Emacs Completion Styles

;; Use the fastest and most restrictive first because the slower
;; options will be consulted only if the faster option yields no
;; results!
(setq completion-styles '(initials partial-completion))

(defun dw/icomplete-setup ()
  (setq completion-styles '(basic flex)))

;; For icomplete it is necessary to use a hook to configure the
;; completion-styles variable correctly!
(add-hook 'icomplete-minibuffer-setup-hook #'dw/icomplete-setup)

Enjoyed this stream? Explore our hands-on courses for deeper, structured learning on Guile Scheme and more.

Get the System Crafters Newsletter
Updates on open source tools, tutorials, and community projects. We'll also occasionally let you know about new courses and resources.
Name (optional)
Email Address