all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ergus <spacibba@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Custom for quit-window?
Date: Fri, 7 Jan 2022 19:05:21 +0100	[thread overview]
Message-ID: <20220107180521.7zgkfxro7c7tkdi7@Ergus> (raw)
In-Reply-To: 20220107180521.7zgkfxro7c7tkdi7.ref@Ergus

Hi:

Is it there a "simple method" to make quit-window to kill the buffer
without needing a prefix?

When working with 10 files and using dired, help and some other
special-mode derived buffers it becomes awkward to have 10 working files
and 15 random noisy buffers that makes "C-x <right>"" navigation
useless and "C-x b" harder to read.

Such simple custom option I am pretty sure has been deserved by someone
before, and a simple approach may be to remap quit-window to something
like:

(defun my/quit-window (&optional kill window)
   (interactive "P")
   (quit-window t window))

But I am wondering if it is so simple why isn't there an option for
that. Is there any very bad side effect on this?

Another alternative is to hide/filter buffers using a regex or so, but
IMHO it is like hiding the real issue under the carpet.

Thanks in advance,
Ergus



       reply	other threads:[~2022-01-07 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220107180521.7zgkfxro7c7tkdi7.ref@Ergus>
2022-01-07 18:05 ` Ergus [this message]
2022-01-07 18:11   ` [External] : Custom for quit-window? Drew Adams
2022-01-08 18:23     ` Ergus
2022-01-09  0:26       ` Drew Adams
2022-01-07 18:20   ` John W Higgins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220107180521.7zgkfxro7c7tkdi7@Ergus \
    --to=spacibba@aol.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.