From: Mark Wooding Date: Mon, 9 Nov 2009 14:45:36 +0000 (+0000) Subject: dot/gnus.el: Use fancy tree drawing if using window-system output. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/e54d5c43658c4092d57b534ad5d9bda3533be753 dot/gnus.el: Use fancy tree drawing if using window-system output. There's no terminal coding system for window systems, because there's no terminal; but Emacs can still show Unicode characters, so we should use them. --- diff --git a/dot/gnus.el b/dot/gnus.el index d3ca4f6..f7b6560 100644 --- a/dot/gnus.el +++ b/dot/gnus.el @@ -41,7 +41,8 @@ gnus-sum-thread-tree-false-root ">" gnus-sum-thread-tree-single-indent "=" gnus-sum-thread-tree-indent " ") -(if (eq (coding-system-get (terminal-coding-system) 'mime-charset) 'utf-8) +(if (memq (coding-system-get (terminal-coding-system) 'mime-charset) + '(nil utf-8)) (setq gnus-sum-thread-tree-leaf-with-other "├─>" gnus-sum-thread-tree-vertical "│ " gnus-sum-thread-tree-single-leaf "╰─>")