From 67bbce62d9d02df960941dc1fca075772e89bdc8 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 6 Apr 2022 19:01:41 +0200 Subject: [PATCH] [Emacs] add elisp-demo, some more documentation --- org/config/emacs.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index f128aeb..29a9b52 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -6632,6 +6632,16 @@ in the echo area at the bottom of the frame. Quite useful indeed. (add-hook 'emacs-lisp-mode-hook (lambda () (smartparens-mode -1))) #+end_src +Still on the topic of documentation, I sometimes find it lacks +examples on how to use Elisp functions. ~elisp-demos~ got you covered! +#+begin_src emacs-lisp +(use-package elisp-demos + :defer t + :straight (:build t) + :config + (advice-add 'helpful-update :after #'elisp-demos-advice-helpful-update)) +#+end_src + Let’s also declare some Elisp-dedicated keybindings, prefixed by a comma. #+begin_src emacs-lisp @@ -6658,6 +6668,8 @@ comma. "tPp" #'parinfer-rust-toggle-paren-mode) #+end_src +Package linting is important when you want to publish your packages to +the world. #+begin_src emacs-lisp (use-package package-lint :defer t