From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Willis Newsgroups: gmane.emacs.help Subject: execute commands if date matches YYYYMMDD Date: Tue, 2 Nov 2010 20:58:14 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016368e240bcc74bc04941c5f74 X-Trace: dough.gmane.org 1288749529 22614 80.91.229.12 (3 Nov 2010 01:58:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2010 01:58:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 03 02:58:45 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PDSce-00073z-Vg for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Nov 2010 02:58:45 +0100 Original-Received: from localhost ([127.0.0.1]:56577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDSce-00037Q-IA for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Nov 2010 21:58:44 -0400 Original-Received: from [140.186.70.92] (port=38189 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDScD-00037G-JL for help-gnu-emacs@gnu.org; Tue, 02 Nov 2010 21:58:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDScC-0006Ga-9x for help-gnu-emacs@gnu.org; Tue, 02 Nov 2010 21:58:17 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:38833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDScC-0006GO-5F for help-gnu-emacs@gnu.org; Tue, 02 Nov 2010 21:58:16 -0400 Original-Received: by bwz16 with SMTP id 16so133897bwz.0 for ; Tue, 02 Nov 2010 18:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ZdS+u7IABq2eYBd04/VXzlRoRpSVcPoarPVfLv0KHFY=; b=nw9PVwbu55nPdDSV3V4JbmUiK3vX725VmIit0qwi8oHwXhkPcB+2m/Ll2FjFoYvYz2 VWEzvcADdaridwXwPNA3cSQekjcjO5xtuGPpBqP5O2mlPXS69uACdlKLd0ADb+Wng0r6 QgBbCUEk8/eiWJrXn7/fVCDMcn63ALV/XGgUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EDqCYPDP8UsdAJ/E68m7RWMnudDVOloyf8OecRp6Hpk51LDDhJjCu2HgJOnp7kwAV+ ReWISs40CpXKHqN2NWEnIN0TlEQyKX5hK1pyPYxgA4BxOmdMNvSdyTLDYql9ezKDHd2z 7JAkFGirlkE/80keBeAwwBVEcJbmF1aVm5ZAw= Original-Received: by 10.204.112.193 with SMTP id x1mr8594072bkp.31.1288749494072; Tue, 02 Nov 2010 18:58:14 -0700 (PDT) Original-Received: by 10.204.100.194 with HTTP; Tue, 2 Nov 2010 18:58:14 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75279 Archived-At: --0016368e240bcc74bc04941c5f74 Content-Type: text/plain; charset=ISO-8859-1 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. --0016368e240bcc74bc04941c5f74 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm giving a presentation to a group this week. The presentation will h= ave many code samples I'll be sharing from emacs.

I = have a few functions I call to modify my environment (remove color-themes/m= odify font and size) specifically for presentations.

I'd like to create a function that will load my alt= ernative 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))
=A0=A0 =A0(presentation-font)
)

T= hanks in advance.
--0016368e240bcc74bc04941c5f74--