Created
November 26, 2013 03:25
-
-
Save nickbarnwell/7653025 to your computer and use it in GitHub Desktop.
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
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . | |
"http://marmalade-repo.org/packages/")) | |
(package-initialize) | |
(defvar my-packages '(clojure-mode | |
clojure-test-mode | |
paredit)) | |
(dolist (p my-packages) | |
(when (not (package-installed-p p)) | |
(package-install p))) | |
;;Disables menubar | |
(menu-bar-mode -1) | |
;;Adds a line separator for linum line numbers | |
(global-linum-mode t) | |
(setq linum-format "%d ") | |
;;Paren Matching | |
(show-paren-mode 1) | |
;; Makes IDO mode do fuzzy matching. | |
(require 'ido) | |
(ido-mode t) | |
(setq ido-enable-flex-matching t) | |
;; Gives identical buffers a path prefix | |
(require 'uniquify) | |
(setq uniquify-buffer-name-style 'forward) | |
;;Makes tabcomplete work | |
(global-set-key (kbd "M-/") 'hippie-expand) | |
(global-set-key (kbd "C-x C-b") 'ibuffer) | |
;;Makes Search regex aware? | |
(global-set-key (kbd "C-s") 'isearch-forward-regexp) | |
(global-set-key (kbd "C-r") 'isearch-backward-regexp) | |
(global-set-key (kbd "C-M-s") 'isearch-forward) | |
(global-set-key (kbd "C-M-r") 'isearch-backward) | |
(setq-default indent-tabs-mode nil) | |
;;Sync X and Emacs Clipaboard | |
(setq x-select-enable-clipboard t | |
x-select-enable-primary t | |
save-interprogram-paste-before-kill t | |
apropos-do-all t | |
mouse-yank-at-point t | |
save-place-file (concat user-emacs-directory "places") | |
backup-directory-alist `(("." . ,(concat user-emacs-directory | |
"backups")))) | |
(add-to-list 'load-path "~/.emacs.d/extras/") | |
(require 'rainbow-delimiters) | |
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode) | |
(dolist (mode '(scheme emacs-lisp lisp clojure clojurescript)) | |
(when (> (display-color-cells) 8) | |
(font-lock-add-keywords (intern (concat (symbol-name mode) "-mode")) | |
'(("(\\|)" . 'esk-paren-face)))) | |
(add-hook (intern (concat (symbol-name mode) "-mode-hook")) | |
'paredit-mode)) | |
;; Theme Settings | |
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") | |
(setq molokai-theme-kit t) | |
;;Marks Molkai theme as safe | |
(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 (molokai))) | |
'(custom-safe-themes (quote ("9fd20670758db15cc4d0b4442a74543888d2e445646b25f2755c65dcd6f1504b" default)))) | |
;; Teaches emacs about tmux+xterm escape sequences | |
(define-key input-decode-map "\e[1;5D" [C-left]) | |
(define-key input-decode-map "\e[1;5A" [C-up]) | |
(define-key input-decode-map "\e[1;5B" [C-down]) | |
(define-key input-decode-map "\e[1;5C" [C-right]) | |
;;Meta Key | |
(define-key input-decode-map "\e[1;3D" [M-left]) | |
(define-key input-decode-map "\e[1;3A" [M-up]) | |
(define-key input-decode-map "\e[1;3B" [M-down]) | |
(define-key input-decode-map "\e[1;3C" [M-right]) | |
(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. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment