cute-jumper / org-table-sticky-header

Sticky header for org-mode tables
36 stars 4 forks source link

Difference to "org-table-electric-header-mode" #15

Open novoid opened 4 years ago

novoid commented 4 years ago

Hi,

This functionality is now part of the default setup using M-x org-table-electric-header-mode which then got renamed to M-x org-table-header-line-mode.

Source: https://mastodon.etalab.gouv.fr/@bzg/103578639383778830

You should add a prominent statement in the README and explain the differences between them both so that users are able to decide which way to go.

Bastien wrote that org-table-header-line-mode has less code and does not use any advice. So I would interpret this as an argument to switch to org-table-header-line-mode and stop using your code. Is this true?

cute-jumper commented 4 years ago

You should add a prominent statement in the README and explain the differences between them both so that users are able to decide which way to go.

Haven't tried the new built-in feature, so I can't tell what is the difference. Looking from the code, it uses timer and does have less code.

Have you tried? Does the new feature in org-mode's stable release yet?

novoid commented 4 years ago

It did not hit the maint repo of Org mode yet (which I am using). Will report back when I do have hands-on experience.

novoid commented 4 years ago

This will be part of Org mode v9.4 - whenever this gets released.

novoid commented 4 years ago

I got into the maint branch of Org mode. I enabled it today and report back after some experience. Any particular interest?

(setq org-table-header-line-mode t)
(setq org-table-sticky-header-mode t)