Skip to content

Miscellaneous

  • consult-theme’: Select a theme and disable all currently enabled themes. Supports live preview of the theme while scrolling through the candidates.

  • consult-completion-in-region’: In case you don’t use Corfu as your in-buffer completion UI, this function can be set as ‘completion-in-region-function’. Then your minibuffer completion UI (e.g., Vertico or Icomplete) will be used for ‘completion-at-point’.

    emacs-lisp
    (setq completion-in-region-function #'consult-completion-in-region)

    Instead of ‘consult-completion-in-region’, you may prefer to see the completions directly in the buffer as a small popup. In that case, I recommend the Corfu package. There is a technical limitation of ‘consult-completion-in-region’ in combination with the Lsp modes. The Lsp server relies on the input at point, in order to generate refined candidate strings. Since the completion is transferred from the original buffer to the minibuffer, the server does not receive the updated input. In contrast, in-buffer Lsp completion for example via Corfu works properly since the completion takes place directly in the original buffer.