logoalt Hacker News

Emacs 31: An unofficial guide to Markdown-ts-mode

163 pointsby RahulMJyesterday at 1:22 PM66 commentsview on HN

Comments

RahulMJyesterday at 3:05 PM

A bit of extra info:

- `ts` stands for "tree-sitter", meaning this mode uses tree-sitter under the hood, which is, among other things, very performant.

- There's support for the CommonMark spec and GFM, so things like `- [ ]` checkboxes and ~~strikethrough~~ work out of the box, along with many other small QoL features.

- This mode is BUILT-IN, so no extra packages are needed.

- This is currently in the experimental phase, so users need to "opt in" and load the mode to play with it, hence the first part of the guide.

show 2 replies
pjdesnoyesterday at 2:09 PM

For those of us who have just been using Emacs, rather than following its recent evolution, "ts-mode" refers to a mode which uses tree-sitter for parsing, highlighting etc.

show 1 reply
ggmyesterday at 9:19 PM

So I can get bold at a cost of shift* to get the star.

Or I can do ESC enable-this-mode-option and then press a single key.

I'm struggling with this. If it's cheaper in keystrokes to type the codes inline why enable the mode?

This isn't a vi vs emacs hate thing, It's a key count efficiency thing. I don't see the motivation even if translated to minimum prefix TAB complete terms. Its like 20x more presses.

taudeyesterday at 2:51 PM

One of the biggest reason I've stopped using Emacs, and I was a pretty heavy user before was that org-mode files weren't fully native Markdown files, which caused annoying friction when collaborating with others.

It would be interesting for me to have a new markdown-centric org-mode thing. I'd love to vibe lisp to customize my workflows, and I don't totally love Obsidian, which is what I've setup and configured now. I'd prefer to just have the config living in/around init.el/config.el (I used DoomEmacs most recently).

I realize that org/agenda, etc does a ton more than markdown offers, but most of my flow is just around: raw notes to be consumed, check lists, due dates on items, and other "basics" of org-mode.

Any recent Emacsers have similar workflows that are tgenible these days? I'd love to get Emacs back in use in my new antigenic Tmux-centric coding flows, and have it be a first class markdown editor, organizaer, and potentially collaboration.....

show 6 replies
rjprinsyesterday at 9:49 PM

I still use my markdown-modern, and obsidian-style renderer. I read more markdown than I write and for that it works well. https://github.com/rjprins/markdown-modern

edgyquantyesterday at 2:19 PM

What are people’s workflows for using eMacs with generative coding? I’m trying to get a workflow where I can generate code and approve it like a PR (maybe leave comments for a next round of generation) but I’m new to eMacs and the ai coding package isn’t working with the latest eMacs

show 6 replies
seamossfetyesterday at 5:03 PM

just switched to doom emacs this month, absolutely loving it tbh

cpachyesterday at 6:54 PM

“You probably heard of this new markdown-ts-mode and decided to check it out.”

Uhm, no, I haven’t.

Why should I care if the Markdown mode uses Treesitter or not…? Does it affect the performance or UX somehow?