[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Geiser-users] Automatic startup/shutdown of REPL processes
From: |
Jose A. Ortega Ruiz |
Subject: |
Re: [Geiser-users] Automatic startup/shutdown of REPL processes |
Date: |
Tue, 09 Apr 2013 00:53:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi,
On Tue, Apr 09 2013, Reuben Thomas wrote:
> When I use geiser-mode, I find two things that should surely be automatic or
> automatable, but aren't:
>
> 1. No REPL process is run. Instead, I get a hint in the minibuffer to
> execute M-x run-geiser. Is there a way to do this automatically?
It's a bit rough, but:
(add-hook 'geiser-mode-hook
(lambda () (save-current-buffer (switch-to-geiser))))
should do the trick.
> 2. When I quit Emacs, I get prompted because the REPL processes are
> running. I can't see an easy way to set them not to prompt, unless
> it's to advise some geiser function; would it be reasonable to have
> that at least as a configurable default (i.e. make it possible to
> allow geiser REPL processes to be killed without a prompt)? If so, and
> anyone can advise me how this might best be accomplished, I'd happily
> work on a patch.
You can simply add this to your emacs configuration:
(add-hook 'comint-exec-hook
(lambda ()
(when (equal 'geiser-repl-mode major-mode)
(set-process-query-on-exit-flag (get-buffer-process
(current-buffer))
nil))))
Hope this helps,
jao
- [Geiser-users] Automatic startup/shutdown of REPL processes, Reuben Thomas, 2013/04/08
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes,
Jose A. Ortega Ruiz <=
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Jose A. Ortega Ruiz, 2013/04/09
- Message not available
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Jose A. Ortega Ruiz, 2013/04/09
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Reuben Thomas, 2013/04/09
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Jose A. Ortega Ruiz, 2013/04/11
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Reuben Thomas, 2013/04/11
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Reuben Thomas, 2013/04/11
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Jose A. Ortega Ruiz, 2013/04/11
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Reuben Thomas, 2013/04/11
- Re: [Geiser-users] Automatic startup/shutdown of REPL processes, Reuben Thomas, 2013/04/11