From: Peng Li Date: Sat, 5 Nov 2016 12:29:16 +0000 (+0800) Subject: emacs - fix error plantuml X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=d4c67e31a1678a195a1c7d44f4b28fb1c590dede;p=dotfiles.git emacs - fix error plantuml --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 14e81af..4ec5a06 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -583,12 +583,14 @@ Fix the issue in mode line when showing triangle set height in mode line #+BEGIN_SRC emacs-lisp :tangle yes :results silent (with-eval-after-load "powerline" - (let* ((base-font-size (face-attribute 'default :height))) - ;; 100/140;0.8 - (set-variable 'powerline-height (/ base-font-size 10)) - (set-variable 'powerline-text-scale-factor (/ (float 100) base-font-size))) - (set-face-attribute 'mode-line nil :height 100) - (set-face-attribute 'mode-line-inactive nil :height 100)) + (if window-system + (progn + (let* ((base-font-size (face-attribute 'default :height))) + ;; 100/140;0.8 + (set-variable 'powerline-height (/ base-font-size 10)) + (set-variable 'powerline-text-scale-factor (/ (float 100) base-font-size))) + (set-face-attribute 'mode-line nil :height 100) + (set-face-attribute 'mode-line-inactive nil :height 100)))) #+END_SRC * IDO & SMEX @@ -782,7 +784,7 @@ Always indents header, and hide header leading starts so that no need type =#+ST #+END_SRC #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (use-package plantuml + (use-package plantuml-mode :ensure t) (setq org-plantuml-jar-path