Skip to content

Instantly share code, notes, and snippets.

@joshrendek
Created June 29, 2014 14:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joshrendek/c3f0182b41f89aaaa8b2 to your computer and use it in GitHub Desktop.
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
;;; from purcell/emacs.d
(defun require-package (package &optional min-version no-refresh)
"Install given PACKAGE, optionally requiring MIN-VERSION.
If NO-REFRESH is non-nil, the available package lists will not be
re-downloaded in order to locate PACKAGE."
(if (package-installed-p package min-version)
t
(if (or (assoc package package-archive-contents) no-refresh)
(package-install package)
(progn
(package-refresh-contents)
(require-package package min-version t)))))
(package-initialize)
(require-package 'evil)
(setq evil-search-module 'evil-search
evil-want-C-u-scroll t
evil-want-C-w-in-emacs-state t)
(require 'evil)
(evil-mode t)
(load-theme 'solarized-dark t)
(require 'flx-ido)
(ido-mode t)
(ido-everywhere t)
(flx-ido-mode t)
;; disable ido faces to see flx highlights.
(setq ido-use-faces nil)
(require 'ido)
;(require 'fuzzy-match)
;(require 'icicles)
;(icy-mode 1)
;(require 'anything)
;(require 'anything-config)
;(setq anything-sources
; (list anything-c-source-buffers
; anything-c-source-file-name-history
; anything-c-source-info-pages
; anything-c-source-man-pages
; anything-c-source-file-cache
; anything-c-source-emacs-commands))
;(global-set-key (kbd "C-x") 'flx-ido)
(require 'mouse)
(xterm-mouse-mode t)
(defun track-mouse (e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment