-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscheme-mycoustom-prelude.el
71 lines (54 loc) · 2.57 KB
/
scheme-mycoustom-prelude.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;;;;;;;;;;;
;; https://www.math.s.chiba-u.ac.jp/~matsu/emacs/emacs21/scheme.html
(setq scheme-program-name "/usr/bin/gosh")
(autoload 'run-scheme "cmuscheme" "Run an inferior Scheme process." t)
(setq cmuscheme-load-hook
'((lambda () (define-key inferior-scheme-mode-map "\C-c\C-t"
'favorite-cmd))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; https://hayate2255.wordpress.com/2013/02/03/windows7-emacs-gauche-%E3%81%AE%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89/
(setq process-coding-system-alist
(cons '("gosh" utf-8 . utf-8) process-coding-system-alist))
(setq scheme-program-name "gosh -i")
(autoload 'scheme-mode "cmuscheme" "Major mode for Scheme." t)
(autoload 'run-scheme "cmuscheme" "Run an inferior Scheme process." t)
(defun scheme-other-window ()
"Run scheme on other window"
(interactive)
(switch-to-buffer-other-window
(get-buffer-create "*scheme*"))
(run-scheme scheme-program-name))
(define-key global-map
"\C-cS" 'scheme-other-window)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; https://prelude.emacsredux.com/en/latest/configuration/
;;(prelude-require-package 'some-package)
(prelude-require-package 'geiser)
(prelude-require-package 'geiser-gauche)
;;(prelude-require-package 'some-package)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; https://gitlab.com/emacs-geiser/gauche
(with-eval-after-load 'geiser-impl
(add-to-list 'geiser-active-implementations 'gauche))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; https://github.com/tsu-nera/dotfiles/blob/master/.emacs.d/inits/31_lisp.org#scheme-mode
;; (use-package scheme
;; :commands (scheme-mode run-scheme)
;; :config
;; (setq process-coding-system-alist
;; (cons '("gosh" utf-8 . utf-8) process-coding-system-alist))
;; (setq scheme-program-name "gosh -i")
;; ;; 別のウィンドウに gosh を動作させる
;; (defun scheme-other-window ()
;; "Run Gauche on other window"
;; (interactive)
;; (split-window-horizontally (/ (frame-width) 2))
;; (let ((buf-name (buffer-name (current-buffer))))
;; (scheme-mode)
;; (switch-to-buffer-other-window
;; (get-buffer-create "*scheme*"))
;; (run-scheme scheme-program-name)
;; (switch-to-buffer-other-window
;; (get-buffer-create buf-name))))
;; (define-key scheme-mode-map (kbd "C-c S") 'scheme-other-window)
;; )