Subject: Re: bug#8615: Please make sure v q removes the buffer for JPGs just likeit does for other files

From: Stefan Monnier <[email-masked]>
Date: Wed, 23 Nov 2011 21:14:58 -0500

> I have problems with accumulating buffers because I use desktop.el
> that remembers all file buffers and tries to restore them after restart.
> Other users may have other problems with accumulating buffers.
> I solved this problem for myself by adding to .emacs:

> (define-key image-mode-map "q" 'quit-window-kill-buffer)
> (define-key archive-mode-map "q" 'quit-window-kill-buffer)
> (define-key tar-mode-map "q" 'quit-window-kill-buffer)
> (define-key dired-mode-map "q" 'quit-window-kill-buffer)

(define-key special-mode-map "q" 'quit-window-kill-buffer)

should be sufficient (tho I haven't checked that all the modes above
inherit from special-mode).

        Stefan