all repos — archive/dotfiles @ 0c03d0bd46e1222d5eae80c8760d4458f9bac030

Superseded by nixfiles

Emacs: Pick a displayable branch char for magit
Alan Pearce alan@alanpearce.co.uk
Thu, 24 Jul 2014 20:09:19 +0100
commit

0c03d0bd46e1222d5eae80c8760d4458f9bac030

parent

593b2f866a5557a1978e3352d311829e57952b25

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -810,7 +810,8 @@ (req-package magit
   :diminish magit-auto-revert-mode
   :commands (magit-status)
-  :config (rename-modeline magit-status-mode "⺦")
+  :config (let ((chars '(11942 5848 177)))
+            (rename-modeline magit-status-mode (char-to-string (-find #'char-displayable-p chars))))
   :init (add-hook 'magit-mode-hook #'magit-load-config-extensions))
 
 ;;;; Spelling