all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Fleischer <danflscr@gmail.com>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: help-gnu-emacs@gnu.org, David Masterson <dsmasterson92630@outlook.com>
Subject: Re: How to "fold" the GNUS Summary buffer?
Date: Mon, 13 Sep 2021 12:54:06 +0300	[thread overview]
Message-ID: <m2bl4wu7gh.fsf@gmail.com> (raw)
In-Reply-To: <m1tuio97t2.fsf@yahoo.es> ("Daniel Martín"'s message of "Mon, 13 Sep 2021 10:52:09 +0200")

Here's simple code to fold threads using TAB:

#+begin_src elisp
(defvar df/gnus-thread--var nil)
(defun df/gnus-thread ()
  (interactive)
  (setq df/gnus-thread--var (not df/gnus-thread--var))
  (if df/gnus-thread--var
      (gnus-summary-hide-thread)
    (gnus-summary-show-thread)))

(define-key gnus-summary-mode-map (kbd "TAB") 'df/gnus-thread)
#+end_src

-- 

Daniel Fleischer



  reply	other threads:[~2021-09-13  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-12 23:45 How to "fold" the GNUS Summary buffer? David Masterson
2021-09-13  8:52 ` Daniel Martín
2021-09-13  9:54   ` Daniel Fleischer [this message]
2021-09-15  3:39     ` David Masterson
2021-09-15  3:38   ` David Masterson

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=m2bl4wu7gh.fsf@gmail.com \
    --to=danflscr@gmail.com \
    --cc=dsmasterson92630@outlook.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mardani29@yahoo.es \
    /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.