bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8615: Please make sure v q removes the buffer for JPGs just like it


From: jidanni
Subject: bug#8615: Please make sure v q removes the buffer for JPGs just like it does for other files
Date: Sat, 10 Dec 2011 18:17:06 +0800

Erg... this is what I have so far,

(eval-after-load "image-mode"
  '(progn
     (define-key image-mode-map "q"
       (lambda () (interactive) (quit-window (not 
current-prefix-arg))))));bug#8615
(eval-after-load "dired"
  '(progn
     (define-key dired-mode-map "q"
       (lambda () (interactive) (quit-window (not current-prefix-arg))))))
(eval-after-load "arc-mode"
  '(progn
     (define-key archive-mode-map "q";note the difference from the library name
       (lambda () (interactive) (quit-window (not current-prefix-arg))))))

i.e., an ever growing list. OK, I give up, you win. I'll use

(global-set-key [remap quit-window]
  (lambda () (interactive) (quit-window (not current-prefix-arg))))

But please tell me how to then restore the virgin "q" behavior for one or two
modes, e.g.,

(eval-after-load "compile"
  '(progn
     (define-key compilation-mode-map ... ???

I tired several things but nothing worked. Perhaps the "remap" above
ruined it for everything.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]