From d4c67e31a1678a195a1c7d44f4b28fb1c590dede Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sat, 5 Nov 2016 20:29:16 +0800 Subject: [PATCH] emacs - fix error plantuml --- emacs.d/config.org | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 -- 2.11.0