1

For starters I use Doom Emacs.

Here's the scenario:

I have a python/perl/js buffer and flycheck-mode activated. Flycheck does its job and tells me that there are some errors that need attention. I go and do `M-x flycheck-list-errors (or SPC c x). I have 2 spaces now: One with my code (which I believe is a window) and another something (buffer/window/minibuffer?) with the list of errors.

Question is: How do I switch to that something without using the mouse?

I've tried next-buffer, previous-buffer, C-x o, and I simply don't know how to focus on it.

Appreciate your help as It's driving me crazy! It shouldn't be that hard, right?

2 Answers 2

1

You can either use M-x other-window to switch to the other window or create a custom function to use instead of the default function flycheck-list-error. The following function opens the flycheck-list-errors buffer and switches to it.

(defun switch-flycheck-list-errors ()
(interactive)
(flycheck-list-errors)
(pop-to-buffer "*Flycheck errors*"))
0

As you guessed, Doom emacs isn’t showing you the flycheck list in a window, which is why M-x other-window doesn’t help.

What can start to help is M-x list-buffers (C-x C-b by default) because of course it’s a buffer, just like everything else in emacs. Doom does show *Buffer List* in a window, so you can C-x o over to that, move the cursor to the *Flycheck errors* line, hit Enter, and pop over to that buffer. M-x other-window will work to get you back out, even though there’s no current window.

Faster than that—and you don’t have another new window or buffer to kill afterwards—is M-x pop-to-buffer which will accept *Flycheck errors* as an argument if that buffer is open.

Your Answer

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

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