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-size nil 'l)
129 (powerline-buffer-id nil 'l)
131 (funcall separator-left mode-line face1)
132 (powerline-narrow face1 'l)
133 (powerline-simpler-vc-mode (powerline-vc face1))))
137 ; (powerline-raw mode-line-misc-info face1 'r)
138 (powerline-raw global-mode-string face1 'r)
139 (funcall separator-right face1 mode-line)
140 (powerline-raw '(:eval (format-time-string " %Y-%m-%d %I:%M %p %a")) nil 'r)
141 (funcall separator-right mode-line face1)
142 ;; (powerline-raw '(:eval (propertize (format-time-string " %Y-%m-%d %I:%M %p %a")
144 ;; (concat (format-time-string "%c; ")
145 ;; (emacs-uptime "Uptime:%hh")))) nil)
147 (powerline-raw "%3c, %l/" face1)
148 (powerline-raw (format "%d" (count-lines (point-min) (point-max))) face1 'r)
149 (funcall separator-right face1 face3)
150 ; (powerline-raw " ")
151 ; (powerline-raw " %4p" nil)))
152 (powerline-raw " %4p" face3)))
155 (powerline-raw " " face1)
156 (funcall separator-left face1 face2)
158 (boundp 'erc-modified-channels-object)
159 (powerline-raw erc-modified-channels-object face2 'l))
160 (powerline-major-mode face2 'l)
161 (powerline-process face2)
162 (powerline-raw " :" face2)
164 (powerline-simpler-minor-display (powerline-minor-modes face2 'l))
166 (powerline-raw " " face2)
167 (funcall separator-right face2 face1))))
171 (powerline-render lhs)
172 ; (powerline-fill-center face1
174 ; (powerline-width center)
176 ; (powerline-render center)
177 (powerline-fill face1
178 (powerline-width rhs))
179 (powerline-render rhs))
192 (provide 'init-color-theme)