diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2012-10-24 04:17:19 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2012-10-24 04:17:23 +0200 |
commit | 09e2247047614d1f1b2285e84bed47dd17143480 (patch) | |
tree | 1a14550d3db80727af954ec202a01ee285db3c94 /elisp | |
parent | b81b23ca475bd4945bfa4096418da7a13fc814bc (diff) | |
download | geiser-guile-09e2247047614d1f1b2285e84bed47dd17143480.tar.gz geiser-guile-09e2247047614d1f1b2285e84bed47dd17143480.tar.bz2 |
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).
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-guile.el | 14 |
1 files changed, 13 insertions, 1 deletions
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 |