From 09e2247047614d1f1b2285e84bed47dd17143480 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Wed, 24 Oct 2012 04:17:19 +0200 Subject: Little clean-ups to the indentation rules Splitting better the specially indented forms between our two implementations, so that users of a single one don't get weird indentations for froms without a special meaning in their scheme. Ideally, we should make these indentation rules buffer-local, so that when a user is in a, say, Guile buffer, module+ has no special indentation (as is the case now if that user also has activated support for Racket). --- elisp/geiser-guile.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'elisp') diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el index 54443b8..00c44d5 100644 --- a/elisp/geiser-guile.el +++ b/elisp/geiser-guile.el @@ -237,12 +237,24 @@ This function uses `geiser-guile-init-file' if it exists." (re-search-forward geiser-guile--guess-re nil t))) -;;; Keywords +;;; Keywords and syntax + (defun geiser-guile--keywords () (when geiser-guile-extra-keywords `((,(format "[[(]%s\\>" (regexp-opt geiser-guile-extra-keywords 1)) . 1)))) +(geiser-syntax--scheme-indent + (c-declare 0) + (c-lambda 2) + (pmatch defun) + (sigaction 1) + (with-fluid* 1) + (with-fluids 1) + (with-fluids* 1) + (with-method 1)) + + ;;; Compilation shell regexps -- cgit v1.2.3