summaryrefslogtreecommitdiff
path: root/emacs-config.org
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-config.org')
-rw-r--r--emacs-config.org43
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.