Closed ProjectMoon closed 2 days ago
Couldn't reproduce this. I tried:
M-x add-file-local-variable-prop-line
eval
, type in (gptel-mode 1)
or what's in the screenshot below.Is there a workaround to have certain org-mode files automatically load gptel, while others do not? Without having to muck around with the auto mode alist, preferably.
Adding that file-local var -- or dir-local if you store your chats in one place -- is the only way right now. What do you mean by "certain org-mode files"?
OK I think the reason this happened was because I actually started my prop line with ;
instead of #
for org-mode.
OK I think the reason this happened was because I actually started my prop line with
;
instead of#
for org-mode.
I avoid writing these by hand since they're easy to mess up, hence add-file-local-variable-prop-line.
If you follow this, to declare an org-mode buffer with gptel auto-enabled:
; ; -*- mode: org-mode; eval: (gptel-mode 1); -*-
You will wind up with multiple property blocks in the file. Putting the mode declaration at the file causes gptel to write a new property block in the org file with its own settings, rather than using the org property block right below it.Is there a workaround to have certain org-mode files automatically load gptel, while others do not? Without having to muck around with the auto mode alist, preferably.