aboutsummaryrefslogtreecommitdiff
path: root/wttrin.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-04 16:41:02 -0500
committerCraig Jennings <c@cjennings.net>2026-04-04 16:41:02 -0500
commit797fa7a6f51211b1218a2c08ce57dbbab835610c (patch)
tree0be7523e8473f29d0d76271450fd6aaab485e7b1 /wttrin.el
parent5463f104165185501be9cd6f7458d1b0cad856de (diff)
downloademacs-wttrin-797fa7a6f51211b1218a2c08ce57dbbab835610c.tar.gz
emacs-wttrin-797fa7a6f51211b1218a2c08ce57dbbab835610c.zip
fix: weather ASCII art wraps when window is narrow
Enable truncate-lines in wttrin-mode so the fixed-width weather art clips at the window edge instead of wrapping and breaking the layout.
Diffstat (limited to 'wttrin.el')
-rw-r--r--wttrin.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/wttrin.el b/wttrin.el
index 2dc231d..55b3e4b 100644
--- a/wttrin.el
+++ b/wttrin.el
@@ -370,6 +370,8 @@ Weather data is displayed in a read-only buffer with the following keybindings:
\\{wttrin-mode-map}"
(buffer-disable-undo)
+ ;; ASCII art breaks if lines wrap at the window edge
+ (setq truncate-lines t)
;; Use face-remap instead of buffer-face-mode to preserve xterm-color faces
(face-remap-add-relative 'default
:family wttrin-font-name