about summary refs log tree commit diff
path: root/init.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-07-02T21·08+0200
committerVincent Ambo <vincent@spotify.com>2013-07-02T21·08+0200
commit2ec20941fd941ac26fffec7301ca289c99b758ad (patch)
tree78feada3dbdb9ed4702bb791b0707c7763e85c3b /init.el
parentee536eb9b79f5dd7d5c0c7882de0759740affba3 (diff)
* added el-get to config file
** Installing switch-windows through el-get
* added several small options to make things nicer
Diffstat (limited to 'init.el')
-rw-r--r--init.el32
1 files changed, 32 insertions, 0 deletions
diff --git a/init.el b/init.el
index 7756f012453c..c68489b0aeec 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-<arrows>
+(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)