[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-chez 6b9b733 12/37: Add geiser-chez-init-file
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-chez 6b9b733 12/37: Add geiser-chez-init-file |
Date: |
Sun, 1 Aug 2021 18:25:56 -0400 (EDT) |
branch: elpa/geiser-chez
commit 6b9b733315ec0d3fa0690ed004b09e6a63f35021
Author: Luis Osa <luis.osa.gdc@gmail.com>
Commit: Luis Osa <luis.osa.gdc@gmail.com>
Add geiser-chez-init-file
Add a new customization variable for an init file to be read on startup of a
Chez REPL, where user code can be defined. The usage is copied from the
equivalent Racket init file, to avoid an error if the file has not been
created.
---
elisp/geiser-chez.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/elisp/geiser-chez.el b/elisp/geiser-chez.el
index ff75e5a..c6f7130 100644
--- a/elisp/geiser-chez.el
+++ b/elisp/geiser-chez.el
@@ -32,6 +32,11 @@
:type '(choice string (repeat string))
:group 'geiser-chez)
+(geiser-custom--defcustom geiser-chez-init-file "~/.chez-geiser"
+ "Initialization file with user code for the Chez REPL."
+ :type 'string
+ :group 'geiser-chez)
+
;;; REPL support:
@@ -43,7 +48,10 @@
(defun geiser-chez--parameters ()
"Return a list with all parameters needed to start Chez Scheme.
This function uses `geiser-chez-init-file' if it exists."
- `(,(expand-file-name "chez/geiser/geiser.ss" geiser-scheme-dir))
+ (let ((init-file) (and (stringp geiser-chez-init-file)
+ (expand-file-name geiser-chez-init-file)))
+ `(,@(and init-file (file-readable-p init-file) (list init-file))
+ ,(expand-file-name "chez/geiser/geiser.ss" geiser-scheme-dir)))
)
(defconst geiser-chez--prompt-regexp "> ")
- [nongnu] elpa/geiser-chez 502b3ac 20/37: Use cl-lib instead of cl, (continued)
- [nongnu] elpa/geiser-chez 502b3ac 20/37: Use cl-lib instead of cl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 086dbba 23/37: make chez display output and error messages., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 94296d8 25/37: files moved from original import locations, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 111ecdd 26/37: scheme load path adjustments, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 055e43d 27/37: license and readme, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez e038c28 09/37: more reduction on geiser:eval, add test, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 6eb6a92 10/37: simple geiser-chez--display-error, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 591c794 17/37: Mark the beginning of code part of elisp libraries with Code: heading, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez fcb2a6a 22/37: add extra parameter support to chez, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 21bc5bb 19/37: Delete trailing whitespace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 6b9b733 12/37: Add geiser-chez-init-file,
Philip Kaludercic <=
- [nongnu] elpa/geiser-chez 755a7cc 21/37: add extra parameter support to chez implementation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 98999d7 28/37: typo, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez dbebff9 31/37: preparing MELPA submission, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez e8065b4 33/37: compilation warnings (unused variable), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez fe3d881 36/37: whitespace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 52b122a 34/37: emacs dependency, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 0c28f4b 32/37: Typo, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez a2d5fff 29/37: make autodoc support the procedure defined by case-lambda., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 4cb7f26 35/37: fix: auto-activate implementation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chez 03da1c1 37/37: Use new implementation extension declarator, Philip Kaludercic, 2021/08/01