From: Tim Landscheidt <tim@tim-landscheidt.de>
To: emacs-orgmode@gnu.org
Subject: Re: Time Slots in Org-Agenda
Date: Tue, 15 Dec 2020 11:06:41 +0000 [thread overview]
Message-ID: <878s9zgwfy.fsf@passepartout.tim-landscheidt.de> (raw)
In-Reply-To: trinity-b3e02ac5-76f4-4550-9747-7f9dcd0799c5-1607671100628@3c-app-mailcom-bs06
steve-humphreys@gmx.com wrote:
>> >> See org-agenda-time-grid
>> >
>> > Where can I find some information on how to use it?
>> Menu help -> Describe -> Describe variable org-agenda-time-grid <RET>
>> or
>> <F1> v org-agenda-time-grid <RET>
> At first
> I have started with the following command, but emacs does not like it
> (setq times '(800 1000 1200))
> (setq freq '("daily" "today"))
> (setq org-agenda-time-grid '(freq times "---" "+++"))
> I also tried variants thereof. My elisp is not so good
> but tried to have a look at the code.
> […]
The last line means: Set the variable org-agenda-time-grid
to a list that consists of the symbol (!) "freq", the sym-
bol "times", the string "---" and the string "+++". How-
ever, you want the first and second elements to be the val-
ues of those variables, so you could say:
| (setq org-agenda-time-grid `(,freq ,times "---" "+++"))
or:
| (setq org-agenda-time-grid (list freq times "---" "+++"))
(NB: There are more subtleties to this (e. g., a symbol can
have separate meanings as a variable and a function (and I
really should finally read the elisp info file from begin-
ning to end :-)))), but my most common mistake is either to
quote something that I do not want to quote or not quote
something that I do want to quote.)
Tim
prev parent reply other threads:[~2020-12-15 11:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 19:50 Time Slots in Org-Agenda Christopher Dimech
2020-12-10 19:31 ` pietru
2020-12-11 4:59 ` steve-humphreys
2020-12-11 5:43 ` Ihor Radchenko
2020-12-11 6:35 ` steve-humphreys
2020-12-11 6:52 ` Ihor Radchenko
2020-12-11 7:18 ` steve-humphreys
2020-12-15 11:06 ` Tim Landscheidt [this message]
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878s9zgwfy.fsf@passepartout.tim-landscheidt.de \
--to=tim@tim-landscheidt.de \
--cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).