From 0c528af13184dfe719a8e239fe01b8d226ad776c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 19 Jul 2020 21:05:23 -0700 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98geiser=E2=80=99=20to=20=E2=80=98?= =?UTF-8?q?scheme-mode=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni-scheme.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/oni-scheme.el b/oni-scheme.el index a53934f..f18fc98 100644 --- a/oni-scheme.el +++ b/oni-scheme.el @@ -4,8 +4,8 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0106.200514 -;; Package-Requires: (oni-company oni-paredit oni-fci rainbow-delimiters) +;; Version: 2020.0719.203126 +;; Package-Requires: (oni-company oni-paredit oni-fci rainbow-delimiters geiser) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -26,6 +26,8 @@ ;;; Code: +(require 'geiser) + (defun oni-scheme--auto-fill-mode () "Enable ‘auto-fill-mode’ only for comments." (setq-local comment-auto-fill-only-comments t) @@ -37,6 +39,13 @@ (add-hook 'scheme-mode-hook 'rainbow-delimiters-mode) (add-hook 'scheme-mode-hook 'oni-scheme--auto-fill-mode) +(add-hook 'geiser-repl-mode-hook 'paredit-mode) + +(setq geiser-default-implementation 'guile) + +(setq geiser-repl-history-filename + (expand-file-name "data/geiser-history" user-emacs-directory)) + ;;;###autoload (add-to-list 'interpreter-mode-alist '("scsh" . scheme-mode))