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

    Remove hooks from ellama minor modes
    
    Removed the window-state-change-hook from both 
ellama-session-header-line-mode
    and ellama-session-mode-line-mode. Changed their :lighter attribute to an 
empty
    string.
---
 ellama.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ellama.el b/ellama.el
index 9b50ed8c22..c58834e3ed 100644
--- a/ellama.el
+++ b/ellama.el
@@ -682,7 +682,7 @@ This filter contains only subset of markdown syntax to be 
good enough."
 ;;;###autoload
 (define-minor-mode ellama-session-header-line-mode
   "Toggle Ellama Session header line mode."
-  (add-hook 'window-state-change-hook #'ellama-session-update-header-line)
+  :lighter ""
   (ellama-session-update-header-line))
 
 ;;;###autoload
@@ -701,7 +701,7 @@ This filter contains only subset of markdown syntax to be 
good enough."
 ;;;###autoload
 (define-minor-mode ellama-session-mode-line-mode
   "Toggle Ellama Session mode line mode."
-  (add-hook 'window-state-change-hook #'ellama-session-update-mode-line)
+  :lighter ""
   (ellama-session-update-mode-line))
 
 ;;;###autoload

Reply via email to