From: mus5mk2ly001@sneakemail.com (Lee)
Subject: Re: Can header-line track a row in my file?
Date: 27 Oct 2002 06:13:47 -0800 [thread overview]
Message-ID: <a1385921.0210270613.685c79aa@posting.google.com> (raw)
In-Reply-To: 5lpttyz0ux.fsf@rum.cs.yale.edu
"Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote in message news:<5lpttyz0ux.fsf@rum.cs.yale.edu>...
> >>>>> "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)))))
Awesome, thanks! In my case I want to track a particular line, so it would be
(set (make-local-variable 'header-line-format)
'(:eval (save-excursion
(goto-line 18)
(move-to-column (window-hscroll))
(buffer-substring (point) (line-end-position)))))
Thanks again,
Lee
next prev parent reply other threads:[~2002-10-27 14:13 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>
2002-10-27 14:13 ` Lee [this message]
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=a1385921.0210270613.685c79aa@posting.google.com \
--to=mus5mk2ly001@sneakemail.com \
/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).