4

On wider tables in org mode, it is hard to see the current line.

In emacs org mode table, is there a way to display different background for the current row, or alternate background for even/odd rows?

(I am not concerned with export, although if the even/odd alternate background would export that would be great as well)

Thanks

mzimmermann
  • 1,002
  • 2
  • 9
  • 14

2 Answers2

3

Not that I know of, but (when editing) you can use M-x hl-line-mode to clearly see the current row highlighted.

fniessen
  • 4,408
  • 19
  • 18
  • I was hoping for a more specific approach but this is a good suggestion in lack of an org solution. – mzimmermann Nov 21 '14 at 23:12
  • I'd like it too ;-) OTOH, for HTML export, you can easily apply CSS rules to get that effect too. GitHub style does it (for example, see https://github.com/fniessen/emacs-leuven). – fniessen Nov 22 '14 at 07:50
3

The package stripe-buffer provides stripe-table-mode which provides odd/even row highlighting for org tables. (It also gives you stripe-listify-buffer which provides similar row highlighting for any list-style buffer like dired, ibuffer, etc.)

glucas
  • 442
  • 3
  • 10