aboutsummaryrefslogtreecommitdiffstats
path: root/_emacs.d/personal/50-ui.el
blob: 3c609f55804857591aa14c8abd5d2d9de5eba817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; ~/.emacs.d/personal/50-ui.el --- UI configurations depending on packages
;;
;; -*- mode: emacs-lisp -*-
;; vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=lisp:
;;
;; Credits:
;; [1] https://github.com/wasamasa/dotemacs/blob/master/init.org
;; [2] From Vim to Emacs+Evil chaotic migration guide
;;     http://juanjoalvarez.net/es/detail/2014/sep/19/vim-emacsevil-chaotic-migration-guide/
;;
;; Aaron LI
;; 2016-02-24
;;

;;; Commentary:
;; UI configurations for Emacs that depends on 3rd-party packages.

;;; Code:

;; powerline: Emacs version of the Vim powerline
(prelude-require-package 'powerline)
(require 'powerline)
(powerline-vim-theme)

;; fill-column-indicator
;; https://www.emacswiki.org/emacs/FillColumnIndicator
(prelude-require-package 'fill-column-indicator)
(require 'fill-column-indicator)
;; Enabled `fci-mode' in text and programming modes,
;; but not special buffers, dired, shell, etc.
(define-globalized-minor-mode global-fci-mode fci-mode
  (lambda ()
    (if (and
          (not (string-match "^\*.*\*$" (buffer-name)))
          (not (eq major-mode 'dired-mode)))
        (fci-mode 1))))
;(global-fci-mode 1)