aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-02-25 11:09:50 +0800
committerAaron LI <aaronly.me@gmail.com>2016-02-25 11:09:50 +0800
commit941be1ad9d8a8ad54df0aa1343c2fc057bb58594 (patch)
tree919feaeb7931c468b38783cad0ec510e9744164f
parent5a6711a7918d85ce23280dfdb5030a2d5c5a465a (diff)
downloaddotfiles-941be1ad9d8a8ad54df0aa1343c2fc057bb58594.tar.bz2
_emacs.d/personal: add 50-ui.el
-rw-r--r--_emacs.d/personal/50-ui.el38
1 files changed, 38 insertions, 0 deletions
diff --git a/_emacs.d/personal/50-ui.el b/_emacs.d/personal/50-ui.el
new file mode 100644
index 0000000..3c609f5
--- /dev/null
+++ b/_emacs.d/personal/50-ui.el
@@ -0,0 +1,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)
+