1

The *Geiser Debug* window disappears after pressing q. This is normally good for dismissing the error messages in the window (for scheme). However, I'd like to keep this window open so that I can see the output of evaluations. (And all too often, I inadvertently closed that window after an error.)

Is there a way to disable the use of q key to close the *Geiser Debug* window (in init.el)?

(This is with Emacs 28)

1 Answer 1

1

C-h v major-mode should tell you the name of the major mode for that buffer.

C-h m will tell you more about the mode, and it might tell you the name of the mode's keymap. If not, a good bet is that the name of the keymap is THE-MODE-map, where THE-MODE is the value of variable major-mode. (Maybe the map name is something like geiser-mode-map.)

Then just bind key q to whatever command you like in that keymap. (Binding it to command ignore makes it do nothing.)

(define-key 'THE-MODE-map (kbd "q") 'ignore)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.