Files
emacs/lisp
Yuan Fu e37cd4fa59 Add baseline tree-sitter indent rule for C-like languages
I found a really good baseline indent rule that handles a wide
range of situations very well.  Now major modes can just start
with this rule and add exceptions on top.

This is worth mentioning in the manual, but that'll be a large
change, and doesn't have to be included in this commit.

* lisp/progmodes/c-ts-common.el:

(c-ts-common-list-indent-style): New variable.
(c-ts-common--standalone-parent):
(c-ts-common--prev-standalone-sibling):
(c-ts-common-parent-ignore-preproc):
(c-ts-common-baseline-indent-rule): New function.

* lisp/treesit.el (treesit--indent-prev-line-node): New function.
(treesit-simple-indent-presets): Add new preset.
2024-12-01 17:53:22 -08:00
..
2024-11-30 06:44:06 -05:00
2024-10-24 16:50:07 +08:00
2024-11-23 22:40:43 -08:00
2024-10-24 16:50:07 +08:00
2024-12-01 17:52:16 -08:00
2024-10-04 01:38:11 +02:00
2024-12-01 17:52:16 -08:00
2024-11-21 10:06:19 +01:00
2024-10-04 01:38:11 +02:00
2024-11-23 04:46:10 -05:00
2024-10-24 16:50:07 +08:00
2024-09-07 06:25:15 -04:00
2024-11-23 04:46:10 -05:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-06-23 16:40:06 +02:00
2024-07-18 11:46:50 +02:00
2024-07-18 11:46:50 +02:00
2024-07-18 11:46:50 +02:00
2024-11-09 12:45:14 +02:00
2024-10-24 16:50:07 +08:00
2024-07-18 11:46:50 +02:00
2024-10-24 16:50:07 +08:00
2024-10-26 14:52:29 -04:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-04 01:38:11 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-27 08:23:06 -04:00
2024-09-02 21:02:09 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-11-16 16:08:26 +02:00
2024-10-24 16:50:07 +08:00
2024-11-09 07:35:12 -05:00
2024-10-04 01:38:11 +02:00
2024-07-20 02:42:08 +02:00
2024-10-24 16:50:07 +08:00
2024-07-20 02:42:08 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-09-08 19:17:48 +03:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-18 17:56:08 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-11-30 06:35:16 -05:00
2024-10-24 16:50:07 +08:00
2024-11-23 16:46:30 +01:00
2024-07-20 02:42:08 +02:00
2024-11-14 10:42:07 -05:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-09-08 19:17:48 +03:00
2024-10-04 01:38:11 +02:00
2024-07-20 02:42:08 +02:00
2024-10-24 16:50:07 +08:00
2024-10-08 09:01:47 +02:00
2024-10-24 16:50:07 +08:00
2024-07-20 02:42:08 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-07-20 02:42:08 +02:00
2024-10-24 16:50:07 +08:00
2024-08-04 10:47:16 +03:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-07-20 02:42:08 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-11-09 12:33:59 +02:00
2024-12-01 19:27:49 +02:00
2024-11-23 04:46:09 -05:00
2024-09-21 07:32:38 -04:00
2024-10-24 16:50:07 +08:00
2024-07-18 11:46:50 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00

This directory contains source code for the parts of Emacs that are
written in Emacs Lisp.  *.el files are Emacs Lisp source, and the
corresponding *.elc files are byte-compiled versions.  Byte-compiled
files are architecture-independent.

The term subdirectory contains Lisp files that customize Emacs for
certain terminal types.  When Emacs starts, it checks the TERM
environment variable to get the terminal type and loads
'term/${TERM}.el' if it exists.

The other subdirectories hold Lisp packages grouped by their general
purpose.