My .tfrc has grown organically over the years, but recently, I started to organize it into a cohesive project. Since some of the stuff I've figured out might be of use to others, I've split it into several files. cleaned them up, and commented them. They're embedded here with a bit of explanation
automew.tf is a snippet I pulled together to let me manage idle timeouts. On taps, one idles out after something like six hours, but the idle-sweep in the plaza is one hour. The idle-out on FurryMUCK is similarly short. To this end, I have a function that whispers something to me every half hour.
A lot of folks set up a noop function through MPI that doesn't spam them with anything, but I find that I like the timestamp when reading through scrollback. With the whole line hilited, it's easy to see, too. Note that, with the away stuff below, though, you'll have to
wh #priority yourself in order to recieve the whispers.
The away/present stuff comprises two different bits of functionality: the ability to set oneself away, and additional instructions of what to do while one is away.
a few some a lot of hangups around me disappearing. It even gets to the point of planning what would happen to my dogs if I suddenly ceased to be. Maybe it's a common fear, maybe not. I guess I just don't want to slip from the minds of people I care about.
away.tf allows one to set oneself away. That sets up an away message for pages and turns off whispers (it was intended to encourage people to page me when I was away, but in reality wound up just discouraging people from whispering). Additionally, it sets up some of the logging stuff below. Finally, to address my worries, it allows me to set myself away/back visibly so that folks know when I step away from the keyboard. It serves the same point as, say, renaming oneself "Makyo|AFK" on IRC.
log_mentions.tf allows me to log mentions of certain patterns to the file
mentions.txt. This means that I can see pages I've received and what folks have said about me while I'm in the room but not present. My habit is to set myself away, detach from the tmux session, and run
tail -f mentions.txt, so that when I get back to the computer, I can quickly browse anything that happened while I was gone.
My hilites are pretty standard. All I've done that's special in
hilites.tf is add a
/wfhilite macro to quickly add a hilite partial for other folks I want to see easily. Hilites of me, along with pages and whispers, are green, while hilites of others are cyan.
.tfrc file pulls everything together. Since all of the functions are safe to reload — that is, they can be purged and redefined without problems; those that one doesn't want purged, such as active mention loggers, should have
-i flags — It means I can update my work with
/load .tfrc. This will purge all purgable functions and reload everything except for worlds. If I want to reload those, I have to load the file separately; I left that as a require because it's noisy.