help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can header-line track a row in my file?


From: Stefan Monnier <address@hidden>
Subject: Re: Can header-line track a row in my file?
Date: 25 Oct 2002 17:04:38 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Lee" == Lee  <mus5mk2ly001@sneakemail.com> writes:
> I have a file in a large table that I have to scroll around in.  It
> would be nice to hang the first row of the table, which tells me what
> is in what column, at the top of the buffer and have it update as I
> scroll horizontally through the table.

Try something like

  (set (make-local-variable 'header-line-format)
       '(:eval (save-excursion
                 (goto-char (point))
                 (move-to-column (window-hscroll))
                 (buffer-substring (point) (line-end-position)))))


-- Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]