From 941be1ad9d8a8ad54df0aa1343c2fc057bb58594 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 25 Feb 2016 11:09:50 +0800 Subject: _emacs.d/personal: add 50-ui.el --- _emacs.d/personal/50-ui.el | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 _emacs.d/personal/50-ui.el (limited to '_emacs.d/personal') 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) + -- cgit v1.2.2