Created
June 18, 2010 12:36
-
-
Save raek/443590 to your computer and use it in GitHub Desktop.
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
(add-to-list 'load-path "~/.emacs.d/") | |
(require 'rainbow-parens) | |
;; clojure-mode | |
(add-to-list 'load-path "~/Projekt/clojure-mode") | |
(require 'clojure-mode) | |
;; swank-clojure | |
(require 'assoc) | |
(add-to-list 'load-path "~/Projekt/swank-clojure") | |
(add-to-list 'load-path "~/Projekt/slime") | |
(setq swank-clojure-jar-path "~/.jars/clojure.jar" | |
swank-clojure-extra-classpaths (list | |
"~/Projekt/swank-clojure/src/main/clojure" | |
"~/.jars/clojure-contrib.jar" | |
"~/.clojure")) | |
(require 'swank-clojure) | |
;; slime | |
(eval-after-load "slime" | |
'(progn (slime-setup '(slime-repl)))) | |
(require 'slime-repl) | |
(slime-setup) | |
(require 'clojure-test-mode) | |
(require 'paredit) | |
(eval-after-load 'paredit | |
'(progn (define-key paredit-mode-map (kbd "{") | |
'paredit-open-curly) | |
(define-key paredit-mode-map (kbd "}") | |
'paredit-close-curly) | |
(define-key paredit-mode-map (kbd "M-}") | |
'paredit-close-curly-and-newline))) | |
(add-hook 'clojure-mode-hook 'enable-paredit-mode) | |
;; Scala Mode | |
(load "scala-mode-auto.el") | |
(defun scala-turnoff-indent-tabs-mode () | |
(setq indent-tabs-mode nil)) | |
;; scala mode hooks | |
(add-hook 'scala-mode-hook 'scala-turnoff-indent-tabs-mode) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(column-number-mode t) | |
'(indent-tabs-mode nil) | |
'(inhibit-startup-screen t) | |
'(scroll-bar-mode nil) | |
'(show-paren-mode t) | |
'(slime-net-coding-system (quote utf-8-unix)) | |
) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(default ((t (:inherit nil :stipple nil :background "#2e3436" :foreground "#eeeeec" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 110 :width normal :foundry "unknown" :family "Inconsolata"))))) | |
(require 'color-theme) | |
(require 'color-theme-dark-clojure) | |
(color-theme-dark-clojure) | |
(tool-bar-mode nil) | |
(ad-activate 'slime-read-interactive-args) | |
(defun slime-reset-clojure-namespace () | |
"Reloads the current Clojure namespace by first removing it and | |
then re-evaluating the slime buffer. Use this to remove old | |
symbol definitions and reset the namespace to contain only what | |
is defined in your current Emacs buffer." | |
(interactive) | |
(slime-interactive-eval (concat "(remove-ns '" (slime-current-package) ")")) | |
(slime-eval-buffer)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment