unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Daniel Fleischer <danflscr@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>,
	tolugboji <tolugboji@protonmail.com>
Subject: Re: Code folding in Emacs.
Date: Mon, 11 Oct 2021 08:39:19 +0800	[thread overview]
Message-ID: <CAGP6POKR3T8zQPqvW6YPQoB2GMQYoUMNL=NUD7Db=9Ab7pq1BA@mail.gmail.com> (raw)
In-Reply-To: <m2ily4suru.fsf@gmail.com>

On Mon, Oct 11, 2021 at 12:35 AM Daniel Fleischer <danflscr@gmail.com> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > [1] https://www.emacswiki.org/emacs/EmacsNiftyTricks#h5o-6
> > [2] https://www.emacswiki.org/emacs/DaleWiles
> > [3] https://github.com/gregsexton/origami.el
> > [4] https://github.com/matsievskiysv/vimish-fold
> > [5] https://github.com/emacsorphanage/yafolding
>
> There is also https://www.emacswiki.org/emacs/hideshowvis.el which adds
> mouse support to the built-in existing hideshow library.

Thank you for pointing this out. After further excavation, I find that
the latest source code is resided at here[1]. I figured out the
following configuration with use-package and straight, and it works
like a charm:

(use-package hideshowvis
  :straight (:host github :repo "sheijk/hideshowvis")
  :config
  (autoload 'hideshowvis-enable "hideshowvis" "Highlight foldable regions")

  (autoload 'hideshowvis-minor-mode
    "hideshowvis"
    "Will indicate regions foldable with hideshow in the fringe."
    'interactive)


  (dolist (hook (list 'prog-mode-hook))
    (add-hook hook 'hideshowvis-enable))

  (hideshowvis-symbols)
  )


[1] https://github.com/sheijk/hideshowvis

HZ



  reply	other threads:[~2021-10-11  0:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-10  8:16 Code folding in Emacs Hongyi Zhao
2021-10-10 11:37 ` tolugboji
2021-10-10 11:54   ` Hongyi Zhao
2021-10-10 12:42     ` tolugboji
2021-10-10 13:16       ` Hongyi Zhao
2021-10-10 13:49         ` tolugboji
2021-10-10 16:35     ` Daniel Fleischer
2021-10-11  0:39       ` Hongyi Zhao [this message]
2021-10-11 12:09       ` Hongyi Zhao
2021-10-11 12:56         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 14:29 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 20:11 ` Eric S Fraga
2021-10-14  5:47 ` David Masterson
2021-10-14  8:21   ` Thibaut Verron

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAGP6POKR3T8zQPqvW6YPQoB2GMQYoUMNL=NUD7Db=9Ab7pq1BA@mail.gmail.com' \
    --to=hongyi.zhao@gmail.com \
    --cc=danflscr@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tolugboji@protonmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).