From: Peng Li Date: Sat, 25 Jun 2016 16:46:23 +0000 (+0800) Subject: emacs - mode line X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=ece94977b2a32072092c47e0367f2d08b38942bb;hp=50879dce191c24fa1c352005f36ae5ad2fcda96e;p=dotfiles.git emacs - mode line --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 62990aa..c292a74 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -370,6 +370,8 @@ clean mode line, Refer to [[https://www.masteringemacs.org/article/hiding-replac ** Powerline mode +Install powerline mode [[https://github.com/milkypostman/powerline][powerline]] + #+BEGIN_SRC emacs-lisp :tangle yes :results silent (use-package powerline :ensure t @@ -381,7 +383,11 @@ clean mode line, Refer to [[https://www.masteringemacs.org/article/hiding-replac ;; :ensure t) ;; (use-package smart-mode-line-powerline-theme ;; :ensure t) +#+END_SRC +Revised powerline-center-theme + +#+BEGIN_SRC emacs-lisp :tangle yes :results silent (defun sd/powerline-simpler-vc (s) (if s (replace-regexp-in-string "Git[:-]" "" s)