From: "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: Can header-line track a row in my file?
Date: 25 Oct 2002 17:04:38 -0400 [thread overview]
Message-ID: <5lpttyz0ux.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: a1385921.0210251144.41a04f1b@posting.google.com
>>>>> "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
next prev parent reply other threads:[~2002-10-25 21:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-25 19:44 Can header-line track a row in my file? Lee
2002-10-25 21:04 ` Stefan Monnier <foo@acm.com> [this message]
2002-10-27 14:13 ` Lee
2002-10-28 20:11 ` Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5lpttyz0ux.fsf@rum.cs.yale.edu \
--to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).