This question already has answers here: make `previous-buffer` and `next-buffer` to ignore some buffers (2 answers) Closed 3 years ago .

I often have various files open and cycle through them using C-x <left> and C-x <right> . However, this means I also need to cycle through various "informative" buffers that I really don't care about. For example, at work I connect to a remote machine (call it foo ) via tramp and edit files there. This opens various buffers such as *debug tramp/sshx foo* *tramp/sshx foo* . Then, we have *Messages* , *Completions* , *scratch* etc, etc.