From: Nicola Girardi <ng@0x80.stream>
To: 9front@9front.org
Subject: [9front] Mail: scroll top top of message
Date: Sat, 22 Jun 2024 16:38:29 +0100 [thread overview]
Message-ID: <55FCFE60D65B55537418BF484C64C6E8@nuc> (raw)
Hi, I was looking to make acme Mail show the top of newly opened
messages; I've used the scrollbar manually for years now and finally
decided to try and automate that... this works for me, posting here
in case it's useful for anyone else.
; git/diff mesg.c
diff 900d08fb3c2517270cb15201a27eeda6eba5a522 uncommitted
--- a/sys/src/cmd/upas/Mail/mesg.c
+++ b/sys/src/cmd/upas/Mail/mesg.c
@@ -294,7 +294,8 @@
}
Bterm(wfd);
free(home);
- fprint(m->ctl, "clean\n");
+ fprint(m->addr, "#0");
+ fprint(m->ctl, "dot=addr\nshow\nclean\n");
return 0;
}
next reply other threads:[~2024-06-22 15:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-22 15:38 Nicola Girardi [this message]
2024-06-22 15:59 ` ori
2024-06-22 16:13 ng
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55FCFE60D65B55537418BF484C64C6E8@nuc \
--to=ng@0x80.stream \
--cc=9front@9front.org \
/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 NNTP newsgroup(s).