unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thibaut Verron <thibaut.verron@gmail.com>
To: Steinar Bang <sb@dod.no>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Is there a markdown-mode similar to org-mode?
Date: Wed, 31 Jan 2024 20:40:38 +0100	[thread overview]
Message-ID: <CAFsi02RPnTB-yx8=bRhJ6Y1L4A3fdRcLK-T-rB+WszGWZSnnGg@mail.gmail.com> (raw)
In-Reply-To: <87frydz70g.fsf@dod.no>

On Wed 31 Jan 2024, 19:35 Steinar Bang, <sb@dod.no> wrote:

> >>>>> Thibaut Verron <thibaut.verron@gmail.com>:
>
> > I am not familiar with markdown-mode, but from what I can read, as far as
> > headings are concerned, it already has all you want.
>
> Yes, but what I'm missing is that it also works for lists.
>
> My fingers keep expecting TAB to fold and unfold lists and my head keeps
> getting surprised when the list item is indented instead.
>
> > The key bindings might be different, but that is easy to change as you
> > say. It also seems that code-block edition is already there, with C-c
> > C-s p and C-c ' -- so again, you just need to rebind to your liking.
>
> Yes... but that code fragment is based on indentation instead of
> backtick marking (which seems to be the "modern" markdown way of doing
> it...? I'm no markdown expert)
>

It seems to be C-c C-s C for that.


> > For lists, you could see if orgstruct-minor-mode does the trick.
> > If not, would turning org-mode temporarily, or opening an indirect buffer
> > in org-mode, be acceptable?
>
> Not sure I understand how either of the two are supposed to work, so
> hard to say if they would be acceptable or not...? :-)



> Will they give the feeling of editing the lists in the markdown document
> or will I have to switch out of in of a different buffer like for code
> editing.
>

My understanding is that with orgstruct, everything should "just work" as
if it was org-mode, as long as the point is on the first line of a list
item. It should also be easy to try, just turn on the minor mode in a
markdown-mode and see if it feels natural.

With org-mode, it would be toggling between modes or toggling between
buffers. But not quite like code editing, as you would still have the
context around.

But come to think of it, it would only work for edition commands, not for
visibility -- those effects would be reverted when switching back to
markdown-mode or to the original buffer. :/

Best wishes,
Thibaut


  reply	other threads:[~2024-01-31 19:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-31 12:19 Is there a markdown-mode similar to org-mode? Steinar Bang
2024-01-31 17:21 ` Thibaut Verron
2024-01-31 18:34   ` Steinar Bang
2024-01-31 19:40     ` Thibaut Verron [this message]
2024-02-01  8:13       ` Steinar Bang
2024-02-23 10:38         ` Steinar Bang
2024-01-31 21:45 ` Howard Melman
2024-02-01  8:08   ` Steinar Bang

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='CAFsi02RPnTB-yx8=bRhJ6Y1L4A3fdRcLK-T-rB+WszGWZSnnGg@mail.gmail.com' \
    --to=thibaut.verron@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sb@dod.no \
    /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).