branch: externals/sxhkdrc-mode commit 3a5d9a4fa12022d5709857d51f39f3d280fcbd0d Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Make small rewording to the README --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b1bb6bf3c5..50baf316a7 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) ```