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

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

Re: How to quit/kill a paradox buffer?


From: Sharon Kimble
Subject: Re: How to quit/kill a paradox buffer?
Date: Tue, 14 Apr 2015 16:43:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Sharon Kimble <address@hidden> writes:

> I've discovered a problem with using paradox for package management,
> in that when I've finished downloading/installing packages, I then
> quit using "Quit" from the package menu dropdown. But, the paradox
> package is still live and shows "Paradox Menu" as its buffer
> heading.
>
> How can I quit it completely and close its buffer, please?
>
I've found that this function works extremely well -

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC emacs-lisp
  (defun kill-this-buffer ()
    (interactive)
    (kill-buffer (current-buffer)))
  
  (bind-key "C-x C-k" 'kill-this-buffer)
#+END_SRC
[2015-04-14 Tue 05:02]

#+BEGIN_SRC emacs-lisp
  (bind-keys :map paradox-menu-mode-map
             ("q" . kill-this-buffer))
#+END_SRC
--8<---------------cut here---------------end--------------->8---

Thanks all
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.7, emacs 24.4.1.0

Attachment: signature.asc
Description: PGP signature


reply via email to

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