Created
May 12, 2014 16:25
-
-
Save kenchangh/10110b72e8e974eb41de to your computer and use it in GitHub Desktop.
My .emacs file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; General Emacs settings | |
(set-default 'cursor-type 'bar) | |
(setq-default indent-tabs-mode nil) ; always replace tabs with spaces | |
(setq-default tab-width 8) ; set tab width to 4 for all buffers | |
(add-hook 'lisp-mode-hook '(lambda () | |
(local-set-key (kbd "RET") 'newline-and-indent))) | |
(setq make-backup-files nil) ; No #backup-files# will be made anymore | |
(setq backup-inhibited t) ;disable backup | |
(setq auto-save-default nil) ;disable auto save | |
;; For startup conveniences | |
(setq inhibit-startup-message t) | |
(shell) | |
(global-linum-mode t) | |
(delete-selection-mode 1) | |
;; For rendering of themes and selection of themes | |
(add-to-list 'custom-theme-load-path "~/elisp/themes") | |
(load-theme 'tango-dark t) | |
;; For highlighting current line | |
(global-hl-line-mode 1) | |
(set-face-background 'hl-line "#3e4446") | |
(set-face-foreground 'highlight nil) | |
;; For the tabbar and navigation | |
(add-to-list 'load-path "~/elisp") | |
(require 'tabbar) | |
(tabbar-mode) | |
(global-set-key (kbd "<C-tab>") 'tabbar-forward) | |
(global-set-key (kbd "<C-S-iso-lefttab>") 'tabbar-backward) | |
;; For choosing color-themes | |
;; Using M-x doremi-color-themes+ | |
(add-to-list 'load-path "~/elisp") | |
(require 'doremi) | |
(require 'doremi-cmd) | |
;; For aligning strings separated by whitespace | |
(defun align-repeat (start end regexp) | |
"Repeat alignment with respect to | |
the given regular expression." | |
(interactive "r\nsAlign regexp: ") | |
(align-regexp start end | |
(concat "\\(\\s-*\\)" regexp) 1 1 t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment