summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProtesilaos Stavrou <info@protesilaos.com>2025-08-10 08:30:53 +0300
committerProtesilaos Stavrou <info@protesilaos.com>2025-08-10 08:30:53 +0300
commit3a5d9a4fa12022d5709857d51f39f3d280fcbd0d (patch)
treeefd5bd45b829485a680c21ab2b685764928f2241
parent3cb7b189af6245fc31f90e5b3f8c631d7c89126d (diff)
Make small rewording to the README
-rw-r--r--README.md17
1 files changed, 9 insertions, 8 deletions
diff --git a/README.md b/README.md
index b1bb6bf..50baf31 100644
--- a/README.md
+++ b/README.md
@@ -19,15 +19,16 @@ Install the mode and use with any `sxhkdrc` file:
```elisp
(use-package sxhkdrc-mode
- :ensure t
- :mode "sxhkdrc.*")
+ :ensure t
+ :mode "sxhkdrc.*")
```
-Restart the sxhkd daemon:
-```elisp
-; once
-(sxhkdrc-mode-restart)
+Restart the sxhkd daemon on demand with the command
+`sxhkdrc-mode-restart`. Or make it happen automatically each time you
+save a buffer that uses the `sxhkdrc-mode` by setting up the
+`sxhkdrc-mode-auto-restart` like this:
-; automatically on file write
-(sxhkdrc-mode-auto-restart)
+```elisp
+;; automatically reload the daemon after saving the file
+(add-hook 'sxhkdrc-mode-hook #'sxhkdrc-mode-auto-restart)
```