emacs: add el-get, and tangotango color theme
[dotfiles.git] / emacs.d / init.el
index 7976c0c..9e7de74 100644 (file)
@@ -2,13 +2,14 @@
 
 (scroll-bar-mode -1)
 (tool-bar-mode -1)
-(menu-bar-mode -1)
+;(menu-bar-mode -1)
 (add-to-list 'default-frame-alist '(width  . 120))
 (add-to-list 'default-frame-alist '(height . 40))
 ;(add-to-list 'default-frame-alist '(font . "Source Code Pro for Powerline-12:weight:light" ))
 (add-to-list 'default-frame-alist '(font . "Source Code Pro for Powerline-12" ))
-(load-theme 'tango-dark)
+;(load-theme 'tango-dark)
 
+(display-time-mode t)
 
 (put 'set-goal-column 'disabled nil)
 (setq vc-follow-symlinks t)
 
 (setq ns-use-srgb-colorspace nil)
 (add-to-list 'auto-mode-alist '("emacs\\'" . emacs-lisp-mode))
-;(set-fringe-mode nil)
 (fringe-mode 0)
-;(set-fringe-mode 1)
 
-;(set-face-inverse-video-p 'vertical-border nil)
-;(set-face-background 'vertical-border (face-background 'default))
 ;
 ;;; Set symbol for the border
-;(set-display-table-slot standard-display-table
-;                        'vertical-border 
-;                        (make-glyph-code ?┃))
+(set-display-table-slot standard-display-table
+                        'vertical-border 
+                        (make-glyph-code ?┃))
 
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;http://y.tsutsumi.io/emacs-from-scratch-part-2-package-management.html
+;;---------------------------------------------------------------------------------------
+;; package
+;; http://y.tsutsumi.io/emacs-from-scratch-part-2-package-management.html
+;;
 (require 'package)
 (add-to-list 'package-archives
              '("melpa" . "http://melpa.milkbox.net/packages/") t)
     fiplr
     w3m
     ace-jump-mode
-    el-get
+;    el-get
     color-identifiers-mode
     elscreen
+    moe-theme
+    monokai-theme
+    molokai-theme
+;    tangotango-theme
+    cyberpunk-theme
   ) "a list of packages to ensure are installed at launch.")
 
 (require 'cl)
   (dolist (p required-packages)
     (when (not (package-installed-p p))
       (package-install p))))
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-                                       ;
-;;(elscreen-start)
 
-;;---------------------------------------------------------------------------------------
-;; color theme
-;;
-(require 'color-theme)
-(load-theme 'sanityinc-tomorrow-bright t)
-
-;;---------------------------------------------------------------------------------------
+;---------------------------------------------------------------------------------------
 ;; Ido
 ;;
 (require 'ido-vertical-mode)
 (ido-everywhere 1)
 (flx-ido-mode 1)
 (setq ido-use-faces nil)
-;(setq ido-enable-flex-matching t)
-;(setq ido-use-faces t)
-;(setq ido-use-faces nil)
-;(set-face-attribute 'ido-vertical-first-match-face nil
-;                  :background "#e5b7c0")
-;(set-face-attribute 'ido-vertical-only-match-face nil
-;                  :background "#e52b50"
-;                  :foreground "white")
-;(set-face-attribute 'ido-vertical-match-face nil
-;                  :foreground "#b00000")
 
 (setq org-completion-use-ido t)
 (setq magit-completing-read-function 'magit-ido-completing-read)
 ;; Magit
 ;;
 (require 'magit)
-;(setq magit-auto-revert-mode nil)
 (setq magit-last-seen-setup-instructions "1.4.0")
+;(setq magit-auto-revert-mode nil)
+
+
 
-;;---------------------------------------------------------------------------------------
-;; powerline
-;;
-;(require 'powerline)
-;(powerline-evil-vim-color-theme)
-;(powerline-evil-center-color-theme)
-(display-time-mode t)
 
 ;;---------------------------------------------------------------------------------------
 ;; evil
 (evil-leader/set-key "w" 'evil-write)
 (require 'evil)
 ;(setq key-chord-two-keys-delay 0.5)
-;(key-chord-define evil-normal-state-map "jj" 'evil-force-normal-state)
-;(key-chord-define evil-visual-state-map "jj" 'evil-change-to-previous-state)
 (key-chord-define evil-insert-state-map "jj" 'evil-normal-state)
-;(key-chord-define evil-replace-state-map "jj" 'evil-normal-state)
 (key-chord-mode 1)
 
-;; change mode-line color by evil state
-;(lexical-let ((default-color (cons (face-background 'mode-line)
-;                                 (face-foreground 'mode-line))))
-;  (add-hook 'post-command-hook
-;          (lambda ()
-;            (let ((color (cond ((minibufferp) default-color)
-;                               ((evil-insert-state-p) '("#e80000" . "#ffffff"))
-;                               ((evil-emacs-state-p)  '("#444488" . "#ffffff"))
-;                               ((buffer-modified-p)   '("#006fa0" . "#ffffff"))
-;                               (t default-color))))
-;              (set-face-background 'mode-line (car color))
-;                         (set-face-foreground 'mode-line (cdr color))))))
 ;; cursor shape
 (setq evil-emacs-state-cursor '("red" box))
 (setq evil-normal-state-cursor '("green" box))
                            (eshell-mode . emacs))
     do (evil-set-initial-state mode state))
 
-(evil-mode 1)
-;(require 'powerline-evil)
-;; TODO: enter emacs mode in eshll rather then evil mode
+;(evil-mode 1)
 
 ;;---------------------------------------------------------------------------------------
 ;; Fiplr
                             (files ("*.jpg" "*.png" "*.zip" "*~" "*.o" ".obj" "*.swp" "*.hg" ".pyc" ".*" ))))
 
 (global-set-key (kbd "C-x f") 'fiplr-find-file)
-;;---------------------------------------------------------------------------------------
-
-;(setq mac-right-option-modifier 'control)
 
+;;---------------------------------------------------------------------------------------
+;; Wind-move
+;;
+(global-set-key (kbd "C-x C-l") 'windmove-right)
+(global-set-key (kbd "C-x C-h") 'windmove-left)
+(global-set-key (kbd "C-x C-k") 'windmove-up)
+(global-set-key (kbd "C-x C-j") 'windmove-down)
 
 
 ;;---------------------------------------------------------------------------------------
-;; Helm
+;; Wind-move
 ;;
-;;;;;;;;;;; helm configuration https://github.com/emacs-helm/helm http://tuhdo.github.io/helm-intro.html
-;;(require 'helm-config)
-;;(global-set-key (kbd "M-x") 'helm-M-x)
-;;(helm-mode 1)
-;;(setq helm-M-x-fuzzy-match t)
-;;(global-set-key (kbd "C-x b") 'helm-mini)
-;;(setq helm-buffers-fuzzy-matching t
-;;      helm-recentf-fuzzy-match    t)
-;;(global-set-key (kbd "C-x C-f") 'helm-find-files)
-;;(when (executable-find "ack-grep")
-;;  (setq helm-grep-default-command "ack-grep -Hn --no-group --no-color %e %p %f"
-;;        helm-grep-default-recurse-command "ack-grep -H --no-group --no-color %e %p %f"))
-;;(setq helm-ff-skip-boring-files t)
-;;;(require 'helm-config)
-;;;(require 'helm-themes)
-;;;(set-face-attribute 'helm-selection nil :background "#441100")
+(set-face-attribute 'vertical-border nil  :foreground "gray")
+
+;(add-to-list 'load-path "~/.emacs.d/config")
+;(require 'init-color-theme)
+
+
+;;;(defun color-theme-inkpot ()
+;;;      "Color theme based on the Inkpot theme. Ported and tweaked by Per Vognsen."
+;;;      (interactive)
+;;;      (color-theme-install
+;;;       '(color-theme-inkpot
+;;;         ((foreground-color . "#cfbfad")
+;;;          (background-color . "#1e1e27")
+;;;          (border-color . "#3e3e5e")
+;;;          (cursor-color . "#404040")
+;;;          (background-mode . dark))
+;;;         (region ((t (:background "#404040"))))
+;;;         (highlight ((t (:background "#404040"))))
+;;;         (fringe ((t (:background "#16161b"))))
+;;;         (show-paren-match-face ((t (:background "#606060"))))
+;;;         (isearch ((t (:bold t :foreground "#303030" :background "#cd8b60"))))
+;;;         (modeline ((t (:bold t :foreground "#b9b9b9" :background "#3e3e5e"))))
+;;;         (modeline-inactive ((t (:foreground "#708090" :background "#3e3e5e"))))
+;;;         (modeline-buffer-id ((t (:bold t :foreground "#b9b9b9" :background "#3e3e5e"))))
+;;;         (minibuffer-prompt ((t (:bold t :foreground "#708090"))))
+;;;         (font-lock-builtin-face ((t (:foreground "#c080d0"))))
+;;;         (font-lock-comment-face ((t (:foreground "#708090")))) ; original inkpot: #cd8b00
+;;;         (font-lock-constant-face ((t (:foreground "#506dbd"))))
+;;;         (font-lock-doc-face ((t (:foreground "#cd8b00"))))
+;;;         (font-lock-function-name-face ((t (:foreground "#87cefa"))))
+;;;         (font-lock-keyword-face ((t (:bold t :foreground "#c080d0"))))
+;;;         (font-lock-preprocessor-face ((t (:foreground "309090"))))
+;;;         (font-lock-reference-face ((t (:bold t :foreground "#808bed"))))
+;;;         (font-lock-string-face ((t (:foreground "#ffcd8b" :background "#404040"))))
+;;;         (font-lock-type-face ((t (:foreground "#ff8bff"))))
+;;;         (font-lock-variable-name-face ((t nil)))
+;;;         (font-lock-warning-face ((t (:foreground "#ffffff" :background "#ff0000"))))))
+
+
+(require 'color-theme)
+
 
 ;;---------------------------------------------------------------------------------------
-;; auto-complete
+;; El-get
+;; https://github.com/dimitri/el-get
 ;;
-(require 'auto-complete)
-(auto-complete-mode 1)
 
+(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
 
-;;; ---------------------------------------- el-get -----------------------------------------
-;(require 'el-get)
-;(add-to-list 'el-get-recipe-path "~/.emacs.d/el-get-user/recipes")
+(unless (require 'el-get nil 'noerror)
+  (with-current-buffer
+      (url-retrieve-synchronously
+       "https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el")
+    (goto-char (point-max))
+    (eval-print-last-sexp)))
 
-;(el-get-bundle packages/sm-package-powerline
-;  :url "https://github.com/laynor/emacs-conf.git"
-;  )
+(add-to-list 'el-get-recipe-path "~/.emacs.d/el-get-user/recipes")
 
 
+(el-get-bundle seudut/color-theme-tangotango
+;        :features color-theme-tangotango
+;        (color-theme-tangotango)
+        )
+
+  
+
+;(require 'color-theme-tangotango)
+;(color-theme-tangotango)
 
-;; Wind-move
-(global-set-key (kbd "C-x C-l") 'windmove-right)
-(global-set-key (kbd "C-x C-h") 'windmove-left)
-(global-set-key (kbd "C-x C-k") 'windmove-up)
-(global-set-key (kbd "C-x C-j") 'windmove-down)
 
-;(global-set-key (kbd "C-x C-s") 'split-window-right)
 
-;; windows devider
-(set-face-attribute 'vertical-border 
-                    nil 
-                    :foreground "gray")
 
+;;---------------------------------------------------------------------------------------
+;; color theme
+;;
+;;(require 'color-theme)
+;;; this color theme no bold style
+;(load-theme 'sanityinc-tomorrow-night t)
+;(load-theme 'sanityinc-tomorrow-bright t)
+;; this theme no italic for comment
+;(load-theme 'tangotango t)
+;(load-theme 'cyberpunk t)
 
+;(require 'moe-theme)
+;(moe-dark)
 
+(add-to-list 'custom-theme-load-path "~/.emacs.d/el-get/color-theme-tangotango")
+(load-theme 'tangotango t)
+
+(require 'powerline)
+(powerline-default-theme)
 
 
 (add-to-list 'load-path "~/.emacs.d/config")
-(require 'init-color-theme)
+;(require 'init-color-theme)
+;(require 'init-color-theme)
+;(color-theme-inkpot)
+
+;;(require 'color-theme-tangotango)
+;;(color-theme-tangotango)