diff options
| author | Protesilaos Stavrou <info@protesilaos.com> | 2025-08-10 08:30:53 +0300 |
|---|---|---|
| committer | Protesilaos Stavrou <info@protesilaos.com> | 2025-08-10 08:30:53 +0300 |
| commit | 3a5d9a4fa12022d5709857d51f39f3d280fcbd0d (patch) | |
| tree | efd5bd45b829485a680c21ab2b685764928f2241 | |
| parent | 3cb7b189af6245fc31f90e5b3f8c631d7c89126d (diff) | |
Make small rewording to the README
| -rw-r--r-- | README.md | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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) ``` |
