Created
May 7, 2013 20:47
-
-
Save shriphani/5535977 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
| ;(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. | |
| ; '(menu-bar-mode t) | |
| ; '(scheme-program-name "mzscheme") | |
| ; '(tool-bar-mode nil) | |
| ; '(widget-image-enable nil)) | |
| (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. | |
| ) | |
| ;; Support for scheme (geiser + quack) | |
| (load-file "~/.emacs.d/plugins/geiser/elisp/geiser.el") | |
| (load-file "~/.emacs.d/geiser-chicken.el") | |
| (setq geiser-active-implementations '(racket)) | |
| (setq geiser-racket-binary "/Applications/Racket/bin/racket") | |
| (setq geiser-chicken-binary "/usr/local/bin/chicken") | |
| ;; Font-Colors and other stuff | |
| (set-default-font "Consolas 13") | |
| (set-frame-parameter nil 'alpha 100) | |
| (add-to-list 'load-path "~/.emacs.d/plugins/color-theme") | |
| (require 'color-theme) | |
| (color-theme-initialize) | |
| (color-theme-tty-dark) | |
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("marmalade" . "http://marmalade-repo.org/packages/")) | |
| ;; You don't need this one if you have marmalade: | |
| ;; (add-to-list 'package-archives | |
| ;; '("geiser" . "http://download.savannah.gnu.org/releases/geiser/packages")) | |
| (package-initialize) | |
| ;; Clojure | |
| (add-to-list 'load-path "~/.emacs.d/clojure-mode") | |
| (require 'clojure-mode) | |
| ;; TRAMP | |
| (require 'tramp) | |
| (load-library "pretty-mode-plus") | |
| (global-pretty-mode 1) | |
| ;; Scheme | |
| (setq scheme-program-name "/usr/local/bin/csi") | |
| (define-key scheme-mode-map "\C-c\C-l" 'scheme-load-current-file) | |
| (define-key scheme-mode-map "\C-c\C-k" 'scheme-compile-current-file) | |
| (require 'cmuscheme) | |
| (define-key scheme-mode-map "\C-c\C-l" 'scheme-load-current-file) | |
| (define-key scheme-mode-map "\C-c\C-k" 'scheme-compile-current-file) | |
| (defun scheme-load-current-file (&optional switch) | |
| (interactive "P") | |
| (let ((file-name (buffer-file-name))) | |
| (comint-check-source file-name) | |
| (setq scheme-prev-l/c-dir/file (cons (file-name-directory file-name) | |
| (file-name-nondirectory file-name))) | |
| (comint-send-string (scheme-proc) (concat "(load \"" | |
| file-name | |
| "\"\)\n")) | |
| (if switch | |
| (switch-to-scheme t) | |
| (message "\"%s\" loaded." file-name) ) ) ) | |
| (defun scheme-compile-current-file (&optional switch) | |
| (interactive "P") | |
| (let ((file-name (buffer-file-name))) | |
| (comint-check-source file-name) | |
| (setq scheme-prev-l/c-dir/file (cons (file-name-directory file-name) | |
| (file-name-nondirectory file-name))) | |
| (message "compiling \"%s\" ..." file-name) | |
| (comint-send-string (scheme-proc) (concat "(compile-file \"" | |
| file-name | |
| "\"\)\n")) | |
| (if switch | |
| (switch-to-scheme t) | |
| (message "\"%s\" compiled and loaded." file-name) ) ) ) | |
| (add-to-list 'custom-theme-load-path "~/.emacs.d/themes") | |
| (load-theme 'bubbleberry t) | |
| (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. | |
| '(cua-enable-cua-keys nil) | |
| '(cua-mode t nil (cua-base)) | |
| '(custom-safe-themes (quote ("9aeb193fa1626559e224e9a754777579a53ac71b4cddd2b8d2b6ef9adbb37754" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" default))) | |
| '(fringe-mode 5 nil (fringe)) | |
| '(powerline-color1 "#3d3d68") | |
| '(powerline-color2 "#292945")) | |
| ;;BEGIN-RACKET-SCRIBBLE-EMACS-INSTALL | |
| ;; Updated: 2013-01-12T02:51:34Z | |
| (condition-case err | |
| (require 'scribble "/Users/shriphani/Library/Racket/planet/300/5.3.1/cache/neil/scribble-emacs.plt/1/2/scribble") | |
| (error (message "Could not load Scribble Emacs: %s" err))) | |
| ;;END-RACKET-SCRIBBLE-EMACS-INSTALL | |
| ;; Clojure | |
| (require 'nrepl) | |
| (add-hook 'clojure-mode-hook 'paredit-mode) | |
| (add-hook 'clojure-mode-hook 'nrepl-mode) | |
| (add-hook 'nrepl-interaction-mode-hook 'nrepl-turn-on-eldoc-mode) | |
| (setq nrepl-hide-special-buffers t) | |
| (add-hook 'nrepl-mode-hook 'paredit-mode) | |
| (add-hook 'nrepl-mode-hook 'rainbow-delimiters-mode) | |
| (require 'ac-nrepl) | |
| (add-hook 'nrepl-mode-hook 'ac-nrepl-setup) | |
| (add-hook 'nrepl-interaction-mode-hook 'ac-nrepl-setup) | |
| (eval-after-load "auto-complete" | |
| '(add-to-list 'ac-modes 'nrepl-mode)) | |
| (defun set-auto-complete-as-completion-at-point-function () | |
| (setq completion-at-point-functions '(auto-complete))) | |
| (add-hook 'auto-complete-mode-hook 'set-auto-complete-as-completion-at-point-function) | |
| (add-hook 'nrepl-mode-hook 'set-auto-complete-as-completion-at-point-function) | |
| (add-hook 'nrepl-interaction-mode-hook 'set-auto-complete-as-completion-at-point-function) | |
| ;; Tramp Configuration | |
| ;;; Currently, tramp is pointed to boston-cluster | |
| (require 'tramp) | |
| (setq tramp-default-method "ssh") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment