Skip to content

Commit

Permalink
feat: save to file the buffer is map to a file when chatgpt reponse i…
Browse files Browse the repository at this point in the history
…s finish
  • Loading branch information
carlos-wong committed Feb 23, 2023
1 parent 0418ce4 commit e354413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chatgpt_stream.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
(with-silent-modifications
(insert (format "\n\n%s END %s"
(make-string 30 ?=)
(make-string 30 ?=))))))))
(make-string 30 ?=))))
(if (buffer-file-name)
(save-buffer))))))
(if (not (stringp response))
(if (not (string-equal (buffer-name) chatgpt-buffer-name))
(and chatgpt-finish-response-notify-hook (run-hooks 'chatgpt-finish-response-notify-hook)))))))
Expand Down

0 comments on commit e354413

Please sign in to comment.