From 08dc9b363da3b0d4e098b0cb4d58c277b3f69e60 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 10 May 2024 17:01:09 -0700 Subject: [PATCH] docs: Mention force update sideline --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 9d01f97..9d9197e 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,15 @@ Here is a list of supported commands: * `face` - (optional) face overrides the default sideline face * `name` - (optional) backend name to display +## 📇 How to force render the sideline on the next command? + +You can force update sideline by adding a hook or advice with the function +`sideline-render-this`. + +```elisp +(add-hook 'ts-fold-on-fold-hook #'sideline-render-this) +``` + ## 📂 Example projects - [sideline-blame](https://github.com/emacs-sideline/sideline-blame)