mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Using consult-buffer to switch between buffers is now project aware, meaning when current buffer is in a project, the list of buffers is split into two groups; project buffers, and other non-project buffers. The project buffers group is above the other buffers group, meaning it's very easy to switch to other buffers within the same project, while still being able to switch to non-project buffers too. When current buffer is not part of a project, all buffers are shown together in a single completion group.
37 lines
1.1 KiB
EmacsLisp
37 lines
1.1 KiB
EmacsLisp
;;; siren-embark.el --- jimeh's Emacs Siren: embark configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for embark.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-marginalia)
|
|
(require 'siren-consult)
|
|
|
|
(use-package embark
|
|
:bind
|
|
(("C-." . embark-act) ;; pick some comfortable binding
|
|
("C-," . embark-dwim) ;; good alternative: M-.
|
|
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
|
|
|
|
:config
|
|
;; Hide the mode line of the Embark live/completions buffers
|
|
(add-to-list 'embark-keymap-alist '(project-buffer . embark-buffer-map))
|
|
(add-to-list 'display-buffer-alist
|
|
'("\\`\\*Embark Collect \\(Live\\|Completions\\)\\*"
|
|
nil
|
|
(window-parameters (mode-line-format . none)))))
|
|
|
|
;; Consult users will also want the embark-consult package.
|
|
(use-package embark-consult
|
|
:after (embark consult)
|
|
:demand t ; only necessary if you have the hook below
|
|
;; if you want to have consult previews as you move around an
|
|
;; auto-updating embark collect buffer
|
|
:hook
|
|
(embark-collect-mode . consult-preview-at-point-mode))
|
|
|
|
(provide 'siren-embark)
|
|
;;; siren-embark.el ends here
|