From 27ae353336d47a9a327329c76f742c6e31a1a414 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Tue, 13 Jul 2021 17:57:09 +0200 Subject: [PATCH] Add installation method in the README --- README.org | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index 25e1c75..fc98719 100644 --- a/README.org +++ b/README.org @@ -34,14 +34,24 @@ your ~load-path~ and add the following to your ~.emacs~ or your ~init.el~: (add-hook 'eshell-banner-load-hook 'eshell-info-banner-update-banner) #+end_src +If you use ~use-package~ only, you can then install it like so: +#+begin_src emacs-lisp + (use-package eshell-info-banner + :ensure t + :defer t + :load-path "~/path/to/where/you/cloned/it/eshell-info-banner.el/" + :hook (eshell-banner-load . eshell-info-banner-update-banner)) +#+end_src + In my case, I prefer using ~use-package~ with ~straight~: #+begin_src emacs-lisp -(use-package eshell-info-banner - :defer t - :straight (eshell-info-banner :type git - :host github - :repo "phundrak/eshell-info-banner.el") - :hook (eshell-banner-load . eshell-info-banner-update-banner)) + (use-package eshell-info-banner + :ensure t + :defer t + :straight (eshell-info-banner :type git + :host github + :repo "phundrak/eshell-info-banner.el") + :hook (eshell-banner-load . eshell-info-banner-update-banner)) #+end_src I personally also added ~:build t~ in the straight recipe to ensure