all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Hooper <simon@trickshot.nu>
Subject: Re: Calendar's buffer hooks (was trailing whitespace visible on some buffers)
Date: Tue, 17 Sep 2002 10:49:06 +0000 (UTC)	[thread overview]
Message-ID: <slrnaoe1nb.p3a.simon@ladmin.partex.co.uk> (raw)
In-Reply-To: mailman.1032257775.4079.help-gnu-emacs@gnu.org

In article <mailman.1032257775.4079.help-gnu-emacs@gnu.org>, Luis O. Silva wrote:
> .....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.

I've been trying to do the same thing for a while. Unfortunately my
knowledge of lisp is nonexistent :( I use the diary and calendar and
have been using the following in my ~/.emacs

(defun simon-calendar-function ()
  (turn-off-auto-fill)
  (turn-off-filladapt-mode)
  (flyspell-mode nil)
  (setq show-trailing-whitespace nil)
)
(add-hook 'calendar-mode-hook 'simon-calendar-function)
(add-hook 'diary-hook 'simon-calendar-function)

This works fine for the diary, but I still have the white space
markers in my calendar. I have also tried using the calendar-load-hook.

Any ideas?

Simon.


-- 
Simon Hooper

  parent reply	other threads:[~2002-09-17 10:49 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 ` Calendar's buffer hooks (was trailing whitespace visible on some buffers) Luis O. Silva
     [not found] ` <mailman.1032257775.4079.help-gnu-emacs@gnu.org>
2002-09-17 10:49   ` Simon Hooper [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnaoe1nb.p3a.simon@ladmin.partex.co.uk \
    --to=simon@trickshot.nu \
    --cc=stimpy@totalise.co.uk \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.