fix line wrapping
This commit is contained in:
7
codex.el
7
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)
|
||||
|
||||
Reference in New Issue
Block a user