Created
July 19, 2011 15:00
-
-
Save michiakig/1092666 to your computer and use it in GitHub Desktop.
custom user file for emacs-starter-kit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("marmalade" . "http://marmalade-repo.org/packages/") t) | |
| (package-initialize) | |
| ;; use Mac command key for meta | |
| (setq mac-command-modifier 'meta) | |
| ;; recursively add emacs dir to load-path | |
| (let ((default-directory "~/.emacs.d/")) | |
| (normal-top-level-add-subdirs-to-load-path)) | |
| (load "color-theme-sanityinc-solarized.el") | |
| (color-theme-sanityinc-solarized-dark) | |
| (set-face-attribute 'default nil :font "Menlo") | |
| (server-start) | |
| ;;;; Revert a few things from the starter-kit: | |
| (setq visible-bell nil) ; no visible bell | |
| (remove-hook 'prog-mode-hook 'esk-pretty-lambdas) ; no pretty lambdas | |
| (remove-hook 'clojure-mode-hook 'esk-pretty-fn) ; no pretty fns | |
| (remove-hook 'text-mode-hook 'turn-on-flyspell) ; no flyspell | |
| (remove-hook 'js-mode-hook 'esk-paredit-nonlisp) ; no paredit in js mode | |
| ;; use shell PATH on OSX | |
| (defun set-exec-path-from-shell-PATH () | |
| (let ((path-from-shell | |
| (replace-regexp-in-string "[[:space:]\n]*$" "" | |
| (shell-command-to-string "$SHELL -l -c 'echo $PATH'")))) | |
| (setenv "PATH" path-from-shell) | |
| (setq exec-path (split-string path-from-shell path-separator)))) | |
| (when (equal system-type 'darwin) (set-exec-path-from-shell-PATH)) | |
| ;; clojure mode for clojurescript files | |
| (add-to-list 'auto-mode-alist '("\\.cljs$" . clojure-mode)) | |
| ;; SML mode | |
| (autoload 'sml-mode "sml-mode" "Major mode for editing SML." t) | |
| (autoload 'run-sml "sml-proc" "Run an inferior SML process." t) | |
| (add-to-list 'auto-mode-alist '("\\.\\(sml\\|sig\\)\\'" . sml-mode)) | |
| ;; Haskell | |
| (add-hook 'haskell-mode-hook (lambda () (haskell-indent-mode))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment