Files
.emacs.d/modules/editor/siren-embark.el
Jim Myhrberg a8618938bf feat(core): use general.el for keybind definitions nearly everywhere
Primarily this replaces :bind with :general in all use-package calls.
2022-03-14 21:16:15 +00:00

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
:general
("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