|
|
@ -1,4 +1,7 @@ |
|
|
|
|
|
|
|
;;;; init.el -*- lexical-binding: t; -*- |
|
|
|
|
|
|
|
|
|
|
|
(require 'package) |
|
|
|
(require 'package) |
|
|
|
|
|
|
|
|
|
|
|
;;; either the stable version: |
|
|
|
;;; either the stable version: |
|
|
|
(add-to-list 'package-archives |
|
|
|
(add-to-list 'package-archives |
|
|
|
;; choose either the stable or the latest git version: |
|
|
|
;; choose either the stable or the latest git version: |
|
|
@ -50,3 +53,25 @@ |
|
|
|
(setq-default fill-column 80) |
|
|
|
(setq-default fill-column 80) |
|
|
|
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1))) |
|
|
|
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1))) |
|
|
|
(global-fci-mode 1) |
|
|
|
(global-fci-mode 1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; change mode-line color by evil state |
|
|
|
|
|
|
|
; (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) '("#545454" . "#ffffff")) |
|
|
|
|
|
|
|
; ((evil-emacs-state-p) '("#444488" . "#ffffff")) |
|
|
|
|
|
|
|
; ((buffer-modified-p) '("#303030" . "#ffffff")) |
|
|
|
|
|
|
|
; (t default-color)))) |
|
|
|
|
|
|
|
; (set-face-background 'mode-line (car color)) |
|
|
|
|
|
|
|
; (set-face-foreground 'mode-line (cdr color)))))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(require 'powerline) |
|
|
|
|
|
|
|
(powerline-center-evil-theme) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <down>") 'evil-window-down) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <up>") 'evil-window-up) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <right>") 'evil-window-right) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <left>") 'evil-window-left) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "-") 'find-file) |
|
|
|