diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-08-20 20:47:53 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-08-20 20:47:53 +0200 |
commit | b2a931ed644123162154916e3420ee879d80ad17 (patch) | |
tree | 6bd0d10e7499667722683164558527dc5258e2a8 /elisp | |
parent | 51982d010fd4a44f93d6df3eceda6ffcebe1dbc2 (diff) | |
download | geiser-chez-b2a931ed644123162154916e3420ee879d80ad17.tar.gz geiser-chez-b2a931ed644123162154916e3420ee879d80ad17.tar.bz2 |
REPL: new customizable faces for input and prompt
Namely, geiser-font-lock-repl-prompt and geiser-font-lock-repl-input.
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-repl.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el index 770b5ca..8615bf3 100644 --- a/elisp/geiser-repl.el +++ b/elisp/geiser-repl.el @@ -113,6 +113,13 @@ If you have a slow system, try to increase this time." :type 'integer :group 'geiser-repl) +(geiser-custom--defface repl-input + 'comint-highlight-input geiser-repl "evaluated input highlighting") + +(geiser-custom--defface repl-prompt + 'comint-highlight-prompt geiser-repl "REPL prompt") + + ;;; Implementation-dependent parameters @@ -517,10 +524,14 @@ buffer." (interactive "p") (compilation-next-error (- n))) + (define-derived-mode geiser-repl-mode comint-mode "REPL" "Major mode for interacting with an inferior scheme repl process. \\{geiser-repl-mode-map}" (scheme-mode-variables) + (set (make-local-variable 'face-remapping-alist) + '((comint-highlight-prompt geiser-font-lock-repl-prompt) + (comint-highlight-input geiser-font-lock-repl-input))) (set (make-local-variable 'mode-line-process) nil) (set (make-local-variable 'comint-use-prompt-regexp) t) (set (make-local-variable 'comint-prompt-read-only) |