Revert "[oni-core] Call ‘consult-customize’ from the top-level"
This reverts commit 961651e575
.
It works in an interactive session, but still fails while starting up. Probably
has to do with autoloads not having finished loading yet, perhaps?
This commit is contained in:
parent
961651e575
commit
23ee5ed080
1 changed files with 6 additions and 6 deletions
12
oni-core.el
12
oni-core.el
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2023.0525.134737
|
;; Version: 2023.0524.235720
|
||||||
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
|
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -450,14 +450,14 @@ _s_: String list"
|
||||||
:enabled buffer-file-name
|
:enabled buffer-file-name
|
||||||
:action find-file))
|
:action find-file))
|
||||||
|
|
||||||
(eval-when-compile
|
(defun oni-core-remove-consult-buffer-preview ()
|
||||||
(require 'consult))
|
(consult-customize consult-buffer :preview-key nil))
|
||||||
|
|
||||||
(consult-customize consult-buffer :preview-key nil)
|
|
||||||
|
|
||||||
(with-eval-after-load 'consult
|
(with-eval-after-load 'consult
|
||||||
(with-eval-after-load 'related-files
|
(with-eval-after-load 'related-files
|
||||||
(add-to-list 'consult-buffer-sources 'oni-core-related-places-source)))
|
(add-to-list 'consult-buffer-sources 'oni-core-related-places-source))
|
||||||
|
|
||||||
|
(oni-core-remove-consult-buffer-preview))
|
||||||
|
|
||||||
;;; Embark
|
;;; Embark
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue