Last active
August 29, 2015 14:07
-
-
Save joom/e7ca51630ff780faf2e2 to your computer and use it in GitHub Desktop.
My Emacs config
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
;; My packages installed: evil, evil-leader, undo-tree, evil-surround (not in MELPA), color-theme-wombat, haskell-mode. | |
;; packages | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("org" . "http://orgmode.org/elpa/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa-stable" . "http://melpa-stable.milkbox.net/packages/"))) | |
(add-to-list 'load-path "~/.emacs.d") | |
(package-initialize) | |
(evil-mode 1) | |
(require 'evil-surround) | |
(global-evil-surround-mode 1) | |
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes") | |
(load-theme 'wombat t) | |
(global-linum-mode 1) | |
(setq linum-format "%d ") | |
(defun kill-this-buffer-volatile () | |
"Kill current buffer, even if it has been modified." | |
(interactive) | |
(set-buffer-modified-p nil) | |
(kill-this-buffer)) | |
(global-evil-leader-mode) | |
; default leader key is \ | |
(evil-leader/set-key | |
"w" 'save-buffer | |
"q" 'kill-this-buffer | |
"1" 'kill-this-buffer-volatile | |
"e" 'find-file | |
"b" 'switch-to-buffer | |
"k" 'kill-emacs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment