Created
February 13, 2015 16:09
-
-
Save latompa/39c92d9168d118fcb4ed to your computer and use it in GitHub Desktop.
~/.emacs.d/init.el
This file contains hidden or 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
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "https://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.milkbox.net/packages/"))) | |
(package-initialize) | |
(when (not package-archive-contents) | |
(package-refresh-contents)) | |
(defvar my-packages '(clojure-mode | |
cider | |
paredit | |
magit)) | |
(dolist (p my-packages) | |
(when (not (package-installed-p p)) | |
(package-install p))) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(custom-enabled-themes (quote (wheatgrass)))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) | |
;; hide menu | |
(menu-bar-mode -1) | |
(add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode) | |
(add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode) | |
(add-hook 'ielm-mode-hook 'turn-on-eldoc-mode) | |
(add-hook 'clojure-mode-hook 'paredit-mode) | |
(add-hook 'cider-repl-mode-hook 'paredit-mode) | |
(add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode) | |
(setq nrepl-hide-special-buffers t) | |
(setq js-indent-level 2) | |
;; show trailing whitespace | |
(setq-default show-trailing-whitespace t) | |
(global-linum-mode t) | |
(setq linum-format "%d ") | |
;; use switch-window | |
(global-set-key (kbd "C-x o") 'other-window) | |
;; experimental | |
(remove-hook 'clojure-mode-hook 'esk-pretty-fn) | |
(add-hook 'html-mode-hook 'turn-off-auto-fill) | |
(remove-hook 'ruby-mode-hook 'turn-off-auto-fill) | |
(turn-off-auto-fill) | |
(setq cider-auto-select-error-buffer nil) | |
(setq cider-show-error-buffer nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment