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 | 0f441d62d9cd89e6e1486af1b4283abe77d30822 (patch) | |
tree | 478647c88de720e4796d1af0ab659625aca48093 /elisp | |
parent | 7614e02ca555a166c29b110f83e7033339e0abd1 (diff) | |
download | geiser-0f441d62d9cd89e6e1486af1b4283abe77d30822.tar.gz geiser-0f441d62d9cd89e6e1486af1b4283abe77d30822.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) |