Created
September 2, 2014 04:47
-
-
Save prathik/07eddfa1b2833c4563c5 to your computer and use it in GitHub Desktop.
Emacs configuration
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
; Store all backups in a single directory | |
(setq backup-directory-alist | |
`((".*" . ,"~/.emacs-backups/"))) | |
(setq auto-save-file-name-transforms | |
`((".*" ,"~/.emacs-backups/" t))) | |
(when (>= emacs-major-version 24) | |
(require 'package) | |
(package-initialize) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
) | |
(require 'auto-complete) | |
(add-to-list 'ac-dictionary-directories "~/.emacs.d/elpa/auto-complete-20140605.1908/dict/") | |
(require 'auto-complete-config) | |
(ac-config-default) | |
(require 'recentf) | |
(recentf-mode 1) | |
(setq recentf-max-menu-items 25) | |
(global-set-key "\C-x\ \C-r" 'recentf-open-files) | |
(global-set-key "\C-x\ \C-b" 'ido-switch-buffer) | |
(show-paren-mode t) | |
(setq show-paren-delay 0) | |
(windmove-default-keybindings) | |
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) | |
(require 'ido) | |
(ido-mode t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment