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)
27 ;(require 'powerline-evil)
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.85))
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-active00 '((t (:foreground "#030303" :background "#bdbdbd" :box nil )))
71 (defface powerline-inactive00 '((t (:foreground "#f9f9f9" :background "#666666" :box nil )))
75 (defface powerline-active11 '((t (:background "grey22" )))
79 (defface powerline-active22 '((t (:background "grey40" )))
83 (defface powerline-inactive11
84 '((t (:background "grey11" )))
88 (defface powerline-inactive22
89 '((t (:background "grey20" )))
98 ;(defface powerline-active-yel '((t (:background "yellow" :inherit mode-line)))
99 (defface powerline-active-yel '((t (:background "yellow" )))
103 (defface powerline-active-blue '((t (:background "blue" )))
110 ;;http://emacser.com/mode-line.htm
111 (defun get-lines-4-mode-line ()
112 (let ((lines (count-lines (point-min) (point-max))))
115 'mouse-face 'mode-line-highlight
116 'face 'mode-line-lines-face
117 'help-echo (format "%d lines" lines)) " ")))
121 (defun powerline-simpler-vc-mode (s)
123 (replace-regexp-in-string "Git:" "" s)
126 (defun powerline-simpler-minor-display (s)
127 (replace-regexp-in-string
129 (mapconcat 'identity '("Undo-Tree" "GitGutter" "Projectile"
130 "Abbrev" "ColorIds" "MRev" "ElDoc" "Paredit"
131 "+1" "+2" "FlyC" "Fly" ;; ":1/0"
132 "Fill" "AC" "FIC") "\\|")) "" s))
134 (defun powerline-ha-theme ()
135 "A powerline theme that removes many minor-modes that don't serve much purpose on the mode-line."
137 (setq-default mode-line-format
142 (powerline-selected-window-active))
144 (if active 'powerline-active00 'powerline-inactive00))
146 (if active 'powerline-active11 'powerline-inactive11))
148 (if active 'powerline-active22 'powerline-inactive22))
150 (if active 'powerline-active-yel 'powerline-inactive22))
152 (if active 'powerline-active-blue 'powerline-inactive22))
155 (format "powerline-%s-%s" powerline-default-separator
156 (car powerline-default-separator-dir))))
159 (format "powerline-%s-%s" powerline-default-separator
160 (cdr powerline-default-separator-dir))))
163 (powerline-raw "%*" nil 'l)
164 (powerline-buffer-id nil 'l)
166 (funcall separator-left mode-line face-blue )
167 (powerline-raw " " face-blue)
168 (powerline-major-mode face-blue 'r)
169 (funcall separator-left face-blue face1)
170 (powerline-narrow face1 'l)
171 (powerline-simpler-vc-mode (powerline-vc face1))))
175 (funcall separator-right face1 mode-line)
176 (powerline-raw (concat "%3c, %l/" (format "%d" (count-lines (point-min) (point-max))) " %4p") mode-line)
177 (funcall separator-right mode-line face1)
178 (powerline-raw (format-time-string " %m-%d") face1 'r)
179 (funcall separator-right face1 face-yel)
180 (powerline-raw (format-time-string " %I:%M %p %a ") face-yel 'r)))
183 (powerline-raw " " face1)
184 (funcall separator-left face1 face2)
186 (boundp 'erc-modified-channels-object)
187 (powerline-raw erc-modified-channels-object face2 'l))
188 (powerline-major-mode face2 'l)
189 (powerline-process face2)
190 (powerline-raw " :" face2)
192 (powerline-simpler-minor-display (powerline-minor-modes face2 'l))
194 (powerline-raw " " face2)
195 (funcall separator-right face2 face1))))
199 (powerline-render lhs)
200 (powerline-fill face1
201 (powerline-width rhs))
202 (powerline-render rhs))
215 (provide 'init-color-theme)