Lobsters | 📄 原文链接 | 2026-10-24 收录

Emacs 折叠终于统一:kirigami 派发加自绘边缘指示

来源:jointhefreeworld.org — 2026-10-23

📋 概述

作者的 Emacs 折叠长期是分裂的:Tree-sitter 模式用 treesit-fold,Lisp 系用 Hideshow,纯文本用 Outline,Org 又是自己一套,键位、外观、性能各不相同。他改用 kirigami 做派发层,为 Tree-sitter、Hideshow、Outline、Org、Vdiff 统一了一套 C-c v 键位,再逐个修掉指示线的画法:把 23 行的位图换成单行位图,让引导线随行高重复并画出收口拐角,颜色改成向背景混合 50% 的 shadow。

🔑 核心要点

💡 金句

The number of times a day I used to think 'wait, what does TAB do in this mode again' is now zero.
← 返回 Lobsters 首页