branch: externals/ellama
commit ec462db15181ef16b4daf2a20e754a0d2b54faa0
Author: Sergey Kostyaev <sskosty...@gmail.com>
Commit: Sergey Kostyaev <sskosty...@gmail.com>

    Add scrolling advices to readme
---
 README.org | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 2d5ecd3c78..31dfb247d0 100644
--- a/README.org
+++ b/README.org
@@ -113,7 +113,10 @@ More sofisticated configuration example:
     (setopt ellama-instant-display-action-function #'display-buffer-at-bottom)
     :config
     ;; show ellama context in header line in all buffers
-    (ellama-context-header-line-global-mode +1))
+    (ellama-context-header-line-global-mode +1)
+    ;; handle scrolling events
+    (advice-add 'pixel-scroll-precision :before #'ellama-disable-scroll)
+    (advice-add 'end-of-buffer :after #'ellama-enable-scroll))
 #+END_SRC
 
 ** Commands

Reply via email to