3 ;(setq display-time-day-and-date t)
7 (setq ns-use-srgb-colorspace nil)
10 ;(load-theme 'tango-dark)
15 ;(add-to-list 'custom-theme-load-path "~/.emacs.d/el-get/color-theme-tangotango")
16 ;(load-theme 'tangotango t)
17 (load-theme 'cyberpunk t)
19 ;(require 'color-theme-sanityinc-tomorrow)
20 ;(color-theme-sanityinc-tomorrow-bright)
24 ;(add-to-list 'load-path "~/.emacs.d/vendor/emacs-powerline")
26 ;(powerline-default-theme)
29 ;(defconst color1 "#6b8e23")
30 ;(defconst color2 "#eedd82")
32 ;(make-face 'mode-line-color-1)
33 ;(set-face-attribute 'mode-line-color-1 nil
34 ; :foreground "#fffacd"
38 ;(make-face 'mode-line-color-2)
39 ;(set-face-attribute 'mode-line-color-2 nil
40 ; :foreground "#fffacd"
45 ;;(defface powerline-active2 '((t (:background "grey40" :inherit mode-line)))
46 ;; "Powerline face 2."
51 ;; https://github.com/howardabrams/dot-files/blob/master/emacs-mode-line.org
53 ;;; '(mode-line-buffer-id ((t (:foreground "#008000" :bold t))))
54 ;;; '(which-func ((t (:foreground "#008000"))))
55 ;;; '(mode-line ((t (:foreground "#008000" :background "#dddddd" :box nil))))
56 ;;; '(mode-line-inactive ((t (:foreground "#008000" :background "#bbbbbb" :box nil)))))
58 ;;; this variable should equal as height in mode-line
60 '(powerline-text-scale-factor 0.8))
63 '(mode-line ((t (:foreground "#030303" :background "#bdbdbd" :box nil :height 0.8 ))))
64 '(mode-line-inactive ((t (:foreground "#f9f9f9" :background "#666666" :box nil :height 0.8)))))
67 (defface powerline-active-yel '((t (:background "yellow" :inherit mode-line)))
71 (defface powerline-active-blue '((t (:background "blue" :inherit mode-line)))
76 ;;http://emacser.com/mode-line.htm
77 (defun get-lines-4-mode-line ()
78 (let ((lines (count-lines (point-min) (point-max))))
81 'mouse-face 'mode-line-highlight
82 'face 'mode-line-lines-face
83 'help-echo (format "%d lines" lines)) " ")))
87 (defun powerline-simpler-vc-mode (s)
89 (replace-regexp-in-string "Git:" "" s)
92 (defun powerline-simpler-minor-display (s)
93 (replace-regexp-in-string
95 (mapconcat 'identity '("Undo-Tree" "GitGutter" "Projectile"
96 "Abbrev" "ColorIds" "MRev" "ElDoc" "Paredit"
97 "+1" "+2" "FlyC" "Fly" ;; ":1/0"
98 "Fill" "AC" "FIC") "\\|")) "" s))
100 (defun powerline-ha-theme ()
101 "A powerline theme that removes many minor-modes that don't serve much purpose on the mode-line."
103 (setq-default mode-line-format
108 (powerline-selected-window-active))
110 (if active 'mode-line 'mode-line-inactive))
112 (if active 'powerline-active1 'powerline-inactive1))
114 (if active 'powerline-active2 'powerline-inactive2))
116 (if active 'powerline-active-yel 'powerline-inactive2))
119 (format "powerline-%s-%s" powerline-default-separator
120 (car powerline-default-separator-dir))))
123 (format "powerline-%s-%s" powerline-default-separator
124 (cdr powerline-default-separator-dir))))
127 (powerline-raw "%*" nil 'l)
128 (powerline-buffer-id nil 'l)
130 (funcall separator-left mode-line face1)
131 (powerline-narrow face1 'l)
132 (powerline-simpler-vc-mode (powerline-vc face1))))
136 (funcall separator-right face1 mode-line)
137 (powerline-raw (format-time-string " %Y-%m-%d %I:%M %p %a") nil 'r)
138 (funcall separator-right mode-line face1)
139 (powerline-raw (concat "%3c, %l/" (format "%d" (count-lines (point-min) (point-max)))) face1 'r)
140 (funcall separator-right face1 face3)
141 (powerline-raw " %4p" face3 'r)))
144 (powerline-raw " " face1)
145 (funcall separator-left face1 face2)
147 (boundp 'erc-modified-channels-object)
148 (powerline-raw erc-modified-channels-object face2 'l))
149 (powerline-major-mode face2 'l)
150 (powerline-process face2)
151 (powerline-raw " :" face2)
153 (powerline-simpler-minor-display (powerline-minor-modes face2 'l))
155 (powerline-raw " " face2)
156 (funcall separator-right face2 face1))))
160 (powerline-render lhs)
161 ; (powerline-fill-center face1
163 ; (powerline-width center)
165 ; (powerline-render center)
166 (powerline-fill face1
167 (powerline-width rhs))
168 (powerline-render rhs))
181 (provide 'init-color-theme)
185 ; (powerline-raw mode-line-misc-info face1 'r)
186 ; (powerline-raw global-mode-string face1 'r)
188 ;; (powerline-raw '(:eval (propertize (format-time-string " %Y-%m-%d %I:%M %p %a")
190 ;; (concat (format-time-string "%c; ")
191 ;; (emacs-uptime "Uptime:%hh")))) nil)