diff --git a/init.el b/init.el index 7756f0124..c68489b0a 100644 --- a/init.el +++ b/init.el @@ -1,3 +1,4 @@ +;; Configure package manager (require 'package) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t) @@ -14,9 +15,32 @@ (when (not (package-installed-p p)) (package-install p))) +;; Configure el-get +(require 'cl) + +(add-to-list 'load-path "~/.emacs.d/el-get/el-get") + +;; Install el-get if not already present +(unless (require 'el-get nil t) + (url-retrieve + "https://github.com/dimitri/el-get/raw/master/el-get-install.el" + (lambda (s) + (end-of-buffer) + (eval-print-last-sexp)))) + +;; el-get recipes +(setq + my:el-get-packages + '(el-get + switch-window)) + +(el-get 'sync my:el-get-packages) + ;; Set solarized theme (load-theme 'solarized-dark t) +;; Other general settings + ;; Enable mouse support on OS X (unless window-system (require 'mouse) @@ -28,9 +52,17 @@ (interactive) (scroll-up 1))) (defun track-mouse (e)) + (setq mouse-sel-mode t) ) +;; Use clipboard properly +(setq x-select-enable-clipboard t) + +;; Navigate windows with M- +(windmove-default-keybindings 'meta) +(setq windmove-wrap-around t) + ;; Configure haskell-mode ;; Enable semi-automatic indentation and font-locking (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)