From 9807972a11e2df738994a342f8cd79b1a59a72da Mon Sep 17 00:00:00 2001 From: Grant Horner Date: Fri, 9 Jan 2026 13:57:39 -0500 Subject: [PATCH] fix line wrapping --- codex.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/codex.el b/codex.el index 7867d18..572db00 100644 --- a/codex.el +++ b/codex.el @@ -53,6 +53,11 @@ :type 'string :group 'codex) +(defcustom codex-wrap-lines t + "Whether to truncate long lines in `codex-mode`." + :type 'boolean + :group 'codex) + (defcustom codex-sessions-file (concat (file-name-parent-directory user-init-file) "codex-sessions") "What the default name should be fore the codex chat buffer." :type 'string @@ -73,7 +78,7 @@ (define-derived-mode codex-mode fundamental-mode "Codex" "Major mode for chatting with Codex." (setq-local buffer-read-only nil) - (setq-local truncate-lines t) + (setq-local truncate-lines (not codex-wrap-lines)) (setq-local codex--busy nil)) (defvar-local codex--prompt-start nil)