* execute commands if date matches YYYYMMDD
@ 2010-11-03 1:58 Will Willis
2010-11-03 3:28 ` PJ Weisberg
0 siblings, 1 reply; 2+ messages in thread
From: Will Willis @ 2010-11-03 1:58 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
I'm giving a presentation to a group this week. The presentation will have
many code samples I'll be sharing from emacs.
I have a few functions I call to modify my environment (remove
color-themes/modify font and size) specifically for presentations.
I'd like to create a function that will load my alternative settings IF that
day is the day of my presentation. What I have is not working:
; this would trigger for today
(if (equal "20101102" (format-time-string "%Y%m%d))
(presentation-font)
)
Thanks in advance.
[-- Attachment #2: Type: text/html, Size: 696 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: execute commands if date matches YYYYMMDD
2010-11-03 1:58 execute commands if date matches YYYYMMDD Will Willis
@ 2010-11-03 3:28 ` PJ Weisberg
0 siblings, 0 replies; 2+ messages in thread
From: PJ Weisberg @ 2010-11-03 3:28 UTC (permalink / raw)
To: help-gnu-emacs
On Wed, Nov 3, 2010 at 1:58 AM, Will Willis <will.willis@gmail.com> wrote:
> ; this would trigger for today
> (if (equal "20101102" (format-time-string "%Y%m%d))
> (presentation-font)
> )
> Thanks in advance.
That works when I try it, aside from the fact that you're missing a "
after the d. Maybe you have a different version? Try string-equal
instead of equal.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-03 3:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 1:58 execute commands if date matches YYYYMMDD Will Willis
2010-11-03 3:28 ` PJ Weisberg
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).