* added el-get to config file
** Installing switch-windows through el-get * added several small options to make things nicer
This commit is contained in:
parent
ee536eb9b7
commit
2ec20941fd
1 changed files with 32 additions and 0 deletions
32
init.el
32
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)
|
||||
|
|
Loading…
Reference in a new issue