From: Eric Marsden <emarsden@laas.fr>
Subject: Re: Postscript print buffer with ISO date?
Date: Thu, 20 Feb 2003 11:20:52 +0100 [thread overview]
Message-ID: <wzi1y23nth7.fsf@melbourne.laas.fr> (raw)
In-Reply-To: hdd4r6zp981.fsf@bacchus.pvv.ntnu.no
>>>>> "stm" == Svend Tollak Munkejord <stm@bacchus.pvv.org> writes:
ecm> (require 'cl)
ecm> (defun my-iso8601-date () (format-time-string "%Y-%d-%d"))
ecm> (eval-after-load "ps-print"
ecm> (setf (second ps-print-header) 'my-iso8601-date))
stm> (defun ps-time-stamp-iso ()
stm> "Return date as \"2003-02-20\"."
stm> (format-time-string "%Y-%m-%d"))
stm> (setq ps-right-header '("/pagenumberstring load" ps-time-stamp-iso ps-time-stamp-hh:mm:ss))
stm>
stm> Is your solution preferable?
in many cases, you have to load a module before being able to
customize it; if you load many modules from your init file, Emacs will
be slow to start up. The special form 'eval-after-load' allows you to
customize a module after it is autoloaded.
An other point is that neither solution will work well if the default
contents of the ps-right-header variable change in the future.
--
Eric Marsden <URL:http://www.laas.fr/~emarsden/>
next prev parent reply other threads:[~2003-02-20 10:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-20 8:42 Postscript print buffer with ISO date? Svend Tollak Munkejord
2003-02-20 9:11 ` François Fleuret
2003-02-20 9:34 ` Eric Marsden
2003-02-20 9:55 ` Svend Tollak Munkejord
2003-02-20 10:20 ` Eric Marsden [this message]
2003-02-20 20:24 ` Kevin Rodgers
2003-02-21 8:25 ` Eric Marsden
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=wzi1y23nth7.fsf@melbourne.laas.fr \
--to=emarsden@laas.fr \
/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.