Skip to content

[emacs-lisp] Add elisp-demos package integration #16402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.develop
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,7 @@ Other:
- ~SPC m r d d~ for =emr-delete-unused-definition=
- ~SPC m e w~ for =emr-eval-and-replace=
- Added =elisp-def= integration (thanks to Thanh Vuong)
- Added =elisp-demos= integration (thanks to Alfonso Montero)
**** Emoji
- Added support for Emoji fonts on macOS and Linux (thanks to CodeFalling)
- Setup =emojify= cache directory (thanks to Boris Buliga)
Expand Down
1 change: 1 addition & 0 deletions layers/+lang/emacs-lisp/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ always be in your dotfile, it is not recommended to uninstall it.
- Nameless package prefix with optional [[https://github.com/Malabarba/Nameless][nameless]]
- Structurally safe editing using optional [[https://github.com/luxbock/evil-cleverparens][evil-cleverparens]]
- Visual feedback when evaluation using [[https://github.com/hchbaw/eval-sexp-fu.el][eval-sexp-fu]]
- Provide Emacs Lisp API usage examples using [[https://github.com/xuchunyang/elisp-demos][elisp-demos]]

* Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
Expand Down
11 changes: 11 additions & 0 deletions layers/+lang/emacs-lisp/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
(edebug :location built-in)
eldoc
elisp-def
elisp-demos
elisp-slime-nav
(emacs-lisp :location built-in)
evil
Expand Down Expand Up @@ -160,6 +161,16 @@
(use-package elisp-def
:defer t))

(defun emacs-lisp/init-elisp-demos ()
(use-package elisp-demos
:defer t
:init
(advice-add 'describe-function-1
:after #'elisp-demos-advice-describe-function-1)
(advice-add 'helpful-update
:after #'elisp-demos-advice-helpful-update)
:commands (elisp-demos-add-demo elisp-demos-find-demo)))

(defun emacs-lisp/init-elisp-slime-nav ()
;; Elisp go-to-definition with M-. and back again with M-,
(use-package elisp-slime-nav
Expand Down
Loading