summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2013-11-30 20:44:46 (GMT)
committerRavikiran Rajagopal <aine.marina@gmail.com>2013-11-30 20:44:46 (GMT)
commitcecb0ed651aa487fa153bf54346a3f2a1969f281 (patch)
tree469c46c31ef4abe8fc4bf5a35d653dac6e0a15bc
parentfdbdd5f412a41b5ccd97512cea15095ec67a1dbd (diff)
downloaddotemacs-cecb0ed651aa487fa153bf54346a3f2a1969f281.zip
dotemacs-cecb0ed651aa487fa153bf54346a3f2a1969f281.tar.gz
dotemacs-cecb0ed651aa487fa153bf54346a3f2a1969f281.tar.bz2
Initial appearance tweaks
-rw-r--r--init.el1
-rw-r--r--ravi-init-appearance.el92
2 files changed, 93 insertions, 0 deletions
diff --git a/init.el b/init.el
index 28e7cf2..3649b07 100644
--- a/init.el
+++ b/init.el
@@ -56,3 +56,4 @@
;; Initialize appearnace
(require 'ravi-init-marks)
+(require 'ravi-init-appearance)
diff --git a/ravi-init-appearance.el b/ravi-init-appearance.el
new file mode 100644
index 0000000..69d63fa
--- /dev/null
+++ b/ravi-init-appearance.el
@@ -0,0 +1,92 @@
+;;; ravi-init-appearance.el --- Emacs appearance
+
+;; Copyright (C) 2013
+
+;; Author: <ravi@nero.lan>
+;; Keywords:
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Customization of emacs appearance
+
+;;; Code:
+
+;; No splash screen please
+(setq inhibit-startup-message t)
+
+;; Allow pasting selection outside of Emacs
+(setq x-select-enable-clipboard t)
+
+;; Show keystrokes in progress
+(setq echo-keystrokes 0.1)
+
+;; Real emacs knights don't use shift to mark things
+(setq shift-select-mode nil)
+
+;; Enable syntax highlighting for older Emacsen that have it off
+(global-font-lock-mode t)
+(setq font-lock-maximum-decoration t)
+
+;; Answering just 'y' or 'n' will do
+(defalias 'yes-or-no-p 'y-or-n-p)
+
+;; Customization of modeline.
+(line-number-mode 1)
+(column-number-mode 1)
+(display-time)
+
+;; Change the way the buffer name is displayed in the modeline.
+(setq-default mode-line-buffer-identification '("%17b"))
+
+;; Undo/redo window configuration with C-c <left>/<right>
+(winner-mode 1)
+
+;; Never insert tabs
+(set-default 'indent-tabs-mode nil)
+
+;; Show me empty lines after buffer end (replaced, see below)
+;(set-default 'indicate-empty-lines t)
+
+(use-package whitespace
+ :init
+ (setq whitespace-style '(face trailing indentation tabs))
+ :config
+ (progn
+ (global-whitespace-mode 1)
+ (add-hook 'before-save-hook 'whitespace-cleanup)
+ )
+ ; No need for 'ensure: t' since whitespace mode is built in
+ )
+
+;; Easily navigate sillycased words
+(global-subword-mode 1)
+
+;; Keep cursor away from edges when scrolling up/down
+(use-package smooth-scrolling
+ :ensure t
+ )
+
+;; Represent undo-history as an actual tree (visualize with C-x u)
+(use-package undo-tree
+ :init
+ (setq undo-tree-mode-lighter "")
+ :config
+ (global-undo-tree-mode)
+ :ensure t
+ )
+
+(provide 'ravi-init-appearance)
+;;; ravi-init-appearance.el ends here