fix line wrapping

This commit is contained in:
2026-01-09 13:57:39 -05:00
parent 22daba6368
commit 9807972a11

View File

@@ -53,6 +53,11 @@
:type 'string :type 'string
:group 'codex) :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") (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." "What the default name should be fore the codex chat buffer."
:type 'string :type 'string
@@ -73,7 +78,7 @@
(define-derived-mode codex-mode fundamental-mode "Codex" (define-derived-mode codex-mode fundamental-mode "Codex"
"Major mode for chatting with Codex." "Major mode for chatting with Codex."
(setq-local buffer-read-only nil) (setq-local buffer-read-only nil)
(setq-local truncate-lines t) (setq-local truncate-lines (not codex-wrap-lines))
(setq-local codex--busy nil)) (setq-local codex--busy nil))
(defvar-local codex--prompt-start nil) (defvar-local codex--prompt-start nil)