chiark / gitweb /
el/dot-emacs.el, dot/gnus.el: Handle character widths correctly.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 23 Jun 2024 00:04:22 +0000 (01:04 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 23 Jun 2024 00:04:22 +0000 (01:04 +0100)
dot/gnus.el
el/dot-emacs.el

index ff2210eadb694e1a20ac0a3e3cbb8e3c68b1fd28..77131a2688de67fbd50e07de21d2870c2a45ac5f 100644 (file)
@@ -34,6 +34,10 @@ (setq mail-source-movemail-program "~/bin/movemail-hack")
 ;; Don't force use of a full window.
 (setq gnus-use-full-window nil)
 
+;; Honour character widths correctly.  Otherwise the screen gets properly
+;; messed up.
+(setq gnus-use-correct-string-widths t)
+
 ;; Display a slrn-like tree view in the summary window.
 (setq gnus-use-trees nil)
 (setq gnus-summary-make-false-root 'dummy)
index 65069672b567158247d4bed21e9f0e8892e74454..879abdb3f51be48832047f3f1f1af3923c66d8bc 100644 (file)
@@ -238,6 +238,10 @@ (defadvice rename-file (after mdw-rename-buffers (from to &optional forcep)
          (with-current-buffer buffer
            (set-visited-file-name to nil t)))))))
 
+;; Character width table hacking.
+(dolist (ch '(?🙀))
+  (aset char-width-table ch 2))
+
 ;;;--------------------------------------------------------------------------
 ;;; Miscellaneous bug fixes.