Skip to content

Instantly share code, notes, and snippets.

@ganmacs
Created May 16, 2014 13:50
Show Gist options
  • Save ganmacs/045e8fb4552dd2e0c898 to your computer and use it in GitHub Desktop.
Save ganmacs/045e8fb4552dd2e0c898 to your computer and use it in GitHub Desktop.
sheme mode in emacs
(autoload 'scheme-mode "cmuscheme" "Major mode for Scheme." t)
(autoload 'run-scheme "cmuscheme" "Run an inferior Scheme process." t)
(add-to-list 'process-coding-system-alist '("gosh" utf-8 . utf-8))
(setq scheme-program-name "/usr/local/bin/gosh -i")
(defun scheme-other-windows ()
(interactive)
(save-selected-window
(select-window (split-window-horizontally))
(run-scheme scheme-program-name)))
(define-key global-map "\C-cG" 'scheme-other-windows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment