From ccad661ab8c2adb7cf0e48750956c0949c53af2b Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 1 Nov 2022 16:28:51 +0000 Subject: Copy latest version of function from consult wiki --- .emacs.d/lisp/init-minibuffer.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el index cd9320c..aa25ced 100644 --- a/.emacs.d/lisp/init-minibuffer.el +++ b/.emacs.d/lisp/init-minibuffer.el @@ -441,11 +441,12 @@ DEFS is a plist associating completion categories to commands." :custom (prefix-help-command 'embark-prefix-help-command) :config - (defun embark-preview () + (defun my-embark-preview () + "Previews candidate in vertico buffer, unless it's a consult command" (interactive) - (unless (bound-and-true-p consult--preview-function) ;; Disable preview for Consult commands + (unless (bound-and-true-p consult--preview-function) (save-selected-window - (let ((embark-quit-after-action)) + (let ((embark-quit-after-action nil)) (embark-dwim))))) ;; Hide the mode line of the Embark live/completions buffers -- cgit 1.4.1-2-gfad0 ty/about/'>about summary refs log tree commit diff stats
path: root/themes/whiteness
blob: 8115b99a943051a567db5f56b74049f745a34ea3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78