diff options
| author | Blake Romero <blake@developercraft.com> | 2025-10-12 18:28:18 +0100 |
|---|---|---|
| committer | Blake Romero <blake@developercraft.com> | 2025-10-12 18:28:18 +0100 |
| commit | 259a6fa7db91d517445f6b657f082cf8b19f745b (patch) | |
| tree | d9d219d5e3091891cde50ae6bbc886ccbabca519 | |
| parent | 5f47710d862ce5d2a3b6ac41e031838951d1caca (diff) | |
Add embark package
| -rw-r--r-- | emacs-config.org | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/emacs-config.org b/emacs-config.org index a6ffa80..0cc04f2 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -1818,6 +1818,49 @@ Emacs completion style that matches multiple regexps in any order. (completion-category-overrides '((file (styles partial-completion))))) #+end_src +** Embark +https://github.com/oantolin/embark + + Emacs Mini-Buffer Actions Rooted in Keymaps. + +#+begin_src elisp + (use-package embark + + :bind + (("C-;" . embark-act) ;; pick some comfortable binding + ("C-M-;" . embark-dwim) ;; good alternative: M-. + ("C-h B" . embark-bindings)) ;; alternative for `describe-bindings' + + :init + + ;; Optionally replace the key help with a completing-read interface + (setq prefix-help-command #'embark-prefix-help-command) + + ;; Show the Embark target at point via Eldoc. You may adjust the + ;; Eldoc strategy, if you want to see the documentation from + ;; multiple providers. Beware that using this can be a little + ;; jarring since the message shown in the minibuffer can be more + ;; than one line, causing the modeline to move up and down: + + ;; (add-hook 'eldoc-documentation-functions #'embark-eldoc-first-target) + ;; (setq eldoc-documentation-strategy #'eldoc-documentation-compose-eagerly) + + ;; Add Embark to the mouse context menu. Also enable `context-menu-mode'. + ;; (context-menu-mode 1) + ;; (add-hook 'context-menu-functions #'embark-context-menu 100) + + :config + + ;; Hide the mode line of the Embark live/completions buffers + (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 + :hook (embark-collect-mode . consult-preview-at-point-mode)) +#+end_src ** Devdocs https://github.com/astoff/devdocs.el Devdocs is a documentation viewer for Emacs similar to the built-in Info browser, but geared towards documentation distributed by the DevDocs website. |
