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

    Move global context variable upper to prevent linter warnings
---
 ellama.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ellama.el b/ellama.el
index a3a3731321..bd7d508d82 100644
--- a/ellama.el
+++ b/ellama.el
@@ -771,6 +771,9 @@ Defaults to md, but supports org.  Depends on 
\"ellama-major-mode.\""
   (cond ((provided-mode-derived-p ellama-major-mode 'org-mode) "org")
         (t "md")))
 
+(defvar ellama--global-context nil
+  "Global context.")
+
 (defun ellama-new-session (provider prompt &optional ephemeral)
   "Create new ellama session with unique id.
 Provided PROVIDER and PROMPT will be used in new session.
@@ -1015,9 +1018,6 @@ If EPHEMERAL non nil new session will not be associated 
with any file."
     (remhash id ellama--active-sessions)
     (puthash new-id buffer ellama--active-sessions)))
 
-(defvar ellama--global-context nil
-  "Global context.")
-
 (defvar ellama--context-buffer " *ellama-context*")
 
 ;;;###autoload

Reply via email to