Try to live without orderless ensuring to load gnus after minibuffer

This commit is contained in:
Gerard Vermeulen 2022-10-27 00:50:24 +02:00
parent 319cb5bd71
commit a26e8bde62

View File

@ -219,7 +219,6 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
(embark-consult . "gnu-devel")
(engrave-faces . "gnu")
(marginalia . "gnu-devel")
(orderless . "gnu-devel")
(org . "gnu-devel")
(python . "gnu-devel")
(queue . "gnu")
@ -240,7 +239,6 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
company ; complete anything
magit ; Git Text-based User Interface
no-littering ; keep `user-emacs-directory' clean
orderless ; Emacs completion style
org ; thought organizer
python ; major mode to edit Python files
vertico ; VERTical Interactive Completion
@ -1209,9 +1207,10 @@ file.
| vertico-scroll-up | scroll-up-command | {{{kbd(C-v)}}} |
|-------------------------------+----------------------------------+---------------------|
** [[info:orderless#Top][Orderless (info)]]
** [[info:orderless#Top][Orderless (info)]] :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:orderless-configuration
:header-args:emacs-lisp: :tangle no
:END:
Listing [[lst:configure-orderless]] configures [[info:orderless#Company][orderless for company (info)]].
@ -1416,13 +1415,11 @@ previous input in the minibuffer. Listing
#+caption: Enable =minibuffer-history-completion=.
#+name: lst:enable-minibuffer-history-completion
#+begin_src emacs-lisp
(with-eval-after-load 'minibuffer
;; https://github.com/oantolin/emacs-config/blob/master/init.el#L333
(when (require 'minibuffer nil 'noerror)
;; https://www.masteringemacs.org/article/understanding-minibuffer-completion
(custom-set-variables
'(completion-category-defaults nil)
'(completion-category-overrides '((file (styles basic partial-completion))))
'(completion-ignore-case t)
'(completion-styles '(orderless basic partial-completion)))
'(completion-ignore-case nil))
(defun minibuffer-setup-history-completions ()
(unless (or minibuffer-completion-table minibuffer-completion-predicate)
@ -1431,14 +1428,6 @@ previous input in the minibuffer. Listing
(add-hook 'minibuffer-setup-hook 'minibuffer-setup-history-completions)
;; Stolen from Emacs-28.1 for Emacs-27.2:
(unless (fboundp 'minibuffer--completion-prompt-end)
(defun minibuffer--completion-prompt-end ()
(let ((end (minibuffer-prompt-end)))
(if (< (point) end)
(user-error "Can't complete in prompt")
end))))
;; Adapted from minibuffer-complete:
(defun minibuffer-complete-history ()
"Allow minibuffer completion on previous input."
@ -5091,7 +5080,7 @@ initializes a list of =webjump-sites=.
#+caption: Configure =gnus=.
#+name: lst:configure-gnus
#+begin_src emacs-lisp
(with-eval-after-load 'emacs
(with-eval-after-load 'gnus
(custom-set-variables
'(gnus-select-method '(nntp "news.gmane.io"))
(with-eval-after-load 'gnus-start