Skip to content

Instantly share code, notes, and snippets.

@funrep funrep/.emacs.el
Created Jun 19, 2014

Embed
What would you like to do?
My emacs config, nothing fancy...
;; Visual stuff
(menu-bar-mode 0)
(tool-bar-mode 0)
(scroll-bar-mode 0)
(setq inhibit-startup-message t)
(global-linum-mode t)
(setq linum-format " %d ")
(set-window-fringes nil 0 0)
(set-fringe-mode 0)
;; X11 clipboard :D
(setq x-select-enable-clipboard t)
;; Package stuff
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(setq required-packages
'(haskell-mode
kivy-mode
idris-mode
sml-mode
shm))
;; Credit: http://dthompson.us/syncing-required-packages-in-emacs.html
(defun install-missing-packages ()
"Install all required packages that haven't been installed."
(interactive)
(mapc (lambda (package)
(unless (package-installed-p package)
(package-install package)))
required-packages)
(message "Installed all missing packages!"))
;; haskell stuff
(add-hook 'haskell-mode-hook 'structured-haskell-mode)
;; Fonts and perhaps themes stuff when I get tired of default ;)
;; (set-default-font "Ubuntu Mono-13")
(set-default-font "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*")
;; Bindings and stuff
(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
(column-number-mode t)
(setq scroll-step 1)
(setq scroll-conservatively 10)
(global-set-key (kbd "C-x C-;") 'comment-region)
(global-set-key (kbd "C-x a r") 'align-regexp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.