branch: externals/sxhkdrc-mode
commit 50c35f648e003c73f3df460f51f00cac73b7e4ad
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Add consolidated use-package example in the README
---
 README.md | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/README.md b/README.md
index 50baf316a7..56a1659c6a 100644
--- a/README.md
+++ b/README.md
@@ -32,3 +32,12 @@ save a buffer that uses the `sxhkdrc-mode` by setting up the
 ;; automatically reload the daemon after saving the file
 (add-hook 'sxhkdrc-mode-hook #'sxhkdrc-mode-auto-restart)
 ```
+
+Putting it all together:
+
+```elisp
+(use-package sxhkdrc-mode
+  :ensure t
+  :mode "sxhkdrc.*"
+  :hook (sxhkdrc-mode . sxhkdrc-mode-auto-restart))
+```

Reply via email to