aboutsummaryrefslogtreecommitdiffstats
path: root/_emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '_emacs.d')
-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)
+