about summary refs log tree commit diff stats
path: root/.emacs.d
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-09-06 21:00:01 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-09-06 21:00:01 +0100
commit72734a940344c8e1bb7c027c39aaf2484533c6a6 (patch)
tree02953dcda8cb95bbb21bdaadf8ecc6cdacab8c0c /.emacs.d
parentfa5235f24286041496dc81379ff9b19d0994a65f (diff)
downloaddotfiles-72734a940344c8e1bb7c027c39aaf2484533c6a6.tar.gz
Fix deprecation warnings
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-minibuffer.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el
index 148986e..5453050 100644
--- a/.emacs.d/lisp/init-minibuffer.el
+++ b/.emacs.d/lisp/init-minibuffer.el
@@ -255,7 +255,7 @@
   (setq consult-project-root-function
         (lambda ()
           (when-let (project (project-current))
-            (car (project-roots project)))))
+            (project-root project))))
 
   ;; Switch perspective when switching buffer if needed
   (setq consult--display-buffer #'persp-switch-to-buffer)
@@ -371,7 +371,7 @@
     (unless (bound-and-true-p consult--preview-function) ;; Disable preview for Consult commands
       (save-selected-window
         (let ((embark-quit-after-action))
-          (embark-default-action)))))
+          (embark-dwim)))))
 
   ;; Hide the mode line of the Embark live/completions buffers
   (add-to-list 'display-buffer-alist