X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig%2Finit-color-theme.el;h=65b546080e029883e0223a5c83fd62e14cdea903;hb=13f8919cf244d4a8f73d0bd3193f6434a0ad1a22;hp=d464d8f5f94f42172b83a89570a7692b63e3b0ce;hpb=595ca2fc90980bb1d776c84e00184d4ea24d87bf;p=dotfiles.git diff --git a/emacs.d/config/init-color-theme.el b/emacs.d/config/init-color-theme.el index d464d8f..65b5460 100644 --- a/emacs.d/config/init-color-theme.el +++ b/emacs.d/config/init-color-theme.el @@ -178,6 +178,21 @@ (concat (replace-regexp-in-string "[<>]" "" (powerline-evil-tag)) " ") ) +;; ----------------------------------------------------------------------------- + +;; ----------------------------------------------------------------------------- +;; |evil| buffer_name | major-mode | vc | | position | pwd | time | +;; ----------------------------------------------------------------------------- +;; +;; ToDo: +;; position and pwd only shows in some mode, such as programming mode +;; using workgroup instead of pwd +;; some other modes such as eshell, package, help, don't need the posittion and +;; pwd +;; + +;; ----------------------------------------------------------------------------- + (defun powerline-ha-theme () "A powerline theme that removes many minor-modes that don't serve much purpose on the mode-line." (interactive) @@ -219,7 +234,8 @@ ;; ) ;; ;; ) - (powerline-raw (powerline-evil-tag) pl-evil-face) + (if evil-mode + (powerline-raw (powerline-evil-tag) pl-evil-face)) ;;; (and evil-mode (funcall separator-left pppp-face face-yel)) ;;;;;; (funcall separator-left pppp-face pppp-face) ;;;; (powerline-raw (powerline-evil-tag) pppp-face face-yel) @@ -241,12 +257,13 @@ (rhs (list (funcall separator-right face1 mode-line) + ;; position (powerline-raw (concat "%3c, %l/" (format "%d" (count-lines (point-min) (point-max))) " %4p ") mode-line) (funcall separator-right mode-line face-blue) - (powerline-raw " [" face-blue) - (powerline-raw (powerline-format-default-directory default-directory) face-blue ) - (powerline-raw "] " face-blue) + ;; pwd/workgroups + (powerline-raw (concat " [" (powerline-format-default-directory default-directory) "] ") face-blue ) (funcall separator-right face-blue face1) + ;; date and time (powerline-raw (format-time-string " %m-%d") face1 'r) (funcall separator-right face1 face-yel) (powerline-raw (format-time-string " %I:%M %p %a ") face-yel 'r)))