From: "Luis O. Silva" <silva@paloma.spbu.ru>
Cc: help-gnu-emacs@gnu.org
Subject: Calendar's buffer hooks (was trailing whitespace visible on some buffers)
Date: Tue, 17 Sep 2002 14:30:45 +0400 [thread overview]
Message-ID: <15751.1109.821361.632357@localhost.localdomain> (raw)
In-Reply-To: <15747.1342.200552.59394@localhost.localdomain>
Dear Emacs community,
On Sat, 14 Sep 2002 13:45:34 +0400, I wrote:
Luis> I want to set the buffer-local variable
Luis> `show-trailing-whitespace' to `t' for all buffers
Luis> except for *info*, *diary*, *calendar*, and *mail
Luis> presentation*. In the emacs node of info I found how
Luis> to set local variables to different _modes_ using
Luis> "hooks", but I don't know how to set buffer-local
Luis> variables to concrete buffers.
With your help I've almost solved the problem, I just need to
know the name of the hooks that take place after the
*calendar* buffer is created.
I've tried the following variants: (after making visible
whitespaces globally)
1. (add-hook 'today-visible-calendar-hook
(lambda ()
(setq show-trailing-whitespace nil)))
==> the whitespaces disappear only when I scroll the calendar
or hit "d" or "h".
2. (add-hook 'calendar-load-hook
(lambda ()
(setq show-trailing-whitespace nil)))
==> whitespaces don't disappear.
Any suggestions?
Thanks in advance
--
Luis Octavio Silva P.
St. Petersburg State University.
66/3 Botanicheskaya St., Apt.119/2
Stary Peterhof
St. Petersburg, Russia.
next prev parent reply other threads:[~2002-09-17 10:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-14 9:45 trailing whitespace visible on some buffers Luis O. Silva
2002-09-17 10:30 ` Luis O. Silva [this message]
[not found] ` <mailman.1032257775.4079.help-gnu-emacs@gnu.org>
2002-09-17 10:49 ` Calendar's buffer hooks (was trailing whitespace visible on some buffers) Simon Hooper
2002-09-18 8:36 ` Calendar's buffer hooks Karl Eichwalder
2002-09-19 5:32 ` Luis O. Silva
[not found] ` <mailman.1032412637.13710.help-gnu-emacs@gnu.org>
2002-09-20 18:51 ` Karl Eichwalder
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=15751.1109.821361.632357@localhost.localdomain \
--to=silva@paloma.spbu.ru \
--cc=help-gnu-emacs@gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).