aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-05-24 23:57:26 -0700
committerGravatar Tom Willemse2023-05-24 23:57:26 -0700
commit434a811056792aa4ddac996a7adab4b9716fe946 (patch)
tree26e6db674875d5551698f9f63f1483233b924786
parentdf67fdad8b73ac9077659a0d6f83bf4705221502 (diff)
downloademacs-config-434a811056792aa4ddac996a7adab4b9716fe946.tar.gz
emacs-config-434a811056792aa4ddac996a7adab4b9716fe946.zip
[oni-core] Put the call to ‘consult-customize’ in separate function
I'm having some issues with my ‘consult-buffer’ setup and I'm hoping that putting this in its own function will help me debug the issue, or at least show me if this is part of the issue or not.
-rw-r--r--oni-core.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/oni-core.el b/oni-core.el
index 38f16c1..ca9b403 100644
--- a/oni-core.el
+++ b/oni-core.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2023.0509.234254
+;; 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)
;; This program is free software; you can redistribute it and/or modify
@@ -450,11 +450,14 @@ _s_: String list"
:enabled buffer-file-name
:action find-file))
+(defun oni-core-remove-consult-buffer-preview ()
+ (consult-customize consult-buffer :preview-key nil))
+
(with-eval-after-load 'consult
(with-eval-after-load 'related-files
(add-to-list 'consult-buffer-sources 'oni-core-related-places-source))
- (consult-customize consult-buffer :preview-key nil))
+ (oni-core-remove-consult-buffer-preview))
;;; Embark