-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-indentation and alignment are not supported within #+begin_ai. #47
Comments
The same is true of org babel src blocks I believe. Not sure if this is something that One workaround you can add to your config: (add-hook #'org-ai-after-chat-insertion-hook
(lambda (_ _)
(when (eq major-mode 'org-mode)
(org-indent-indent-buffer)))) |
I think the simpler option is to use the first argument to customize the behavior: (add-hook #'org-ai-after-chat-insertion-hook
(lambda (what _)
(when (and (eq what 'end)
(eq major-mode 'org-mode))
(org-indent-indent-buffer)))) |
I've been using a similar hook, but with an additional check to see if org-indent-mode is active: #18 (comment). A more efficient approach would use |
Indentation issue in org-ai: After executing a dialogue, newly added lines by [AI] are not aligned with the content above.
For example:
layout of newly added content after executing a request:
The text was updated successfully, but these errors were encountered: