emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Meir Goldenberg <mgoldenbe@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to make weeks start from Sunday and be numbered from a custom date
Date: Wed, 26 Aug 2015 16:37:44 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150826T183304-231@post.gmane.org> (raw)
In-Reply-To: CAP6X8DgYpp2ARcTK-psqW+=9BF0G_TSDwOM6JXyyqm0wR9NkCg@mail.gmail.com


Bill Burdick <bill.burdick <at> gmail.com> writes:

> 
> 
> Have you tried customizing org-agenda-format-date with a function?  
Here's the doc string:
> 
> "Format string for displaying dates in the agenda.
> Used by the daily/weekly agenda and by the timeline.  This should be
> a format string understood by `format-time-string', or a function 
returning
> the formatted date as a string.  The function must take a single 
argument,
> a calendar-style date list like (month day year)."
> 
> 
> If you're mostly concerned about displaying dates, rather than reading 
them in, that might do the trick.
> 
> 
> -- Bill
> 
> 
> On Sun, Aug 23, 2015 at 9:04 PM Nick Dokos <ndokos <at> gmail.com> wrote:
> 
> Meir Goldenberg <mgoldenbe <at> gmail.com> writes:
> > Two questions:
> >
> > 1. My work week starts on Sunday, so I have:
> >
> > (setq org-agenda-start-on-weekday 0)
> >
> > Now the agenda timeline starts on Sunday as desired. However, it says 
on top "Week agenda (W34-W35)", i.e. it still thinks that the week starts 
on Monday. Can I change that? 
> >
> > 2. It would be very useful for me if the weeks were numbered from the 
week when my big work project started. Can I have the week numbering 
customized to have W01 on a certain date?
> >
> I believe the answer is "no" to both questions: these are ISO week
> numbers and org depends on calendar functions to calculate them.
> --
> Nick
> 
> 
> 

This sounds good. However, it requires knowledge of eLisp, which I cannot 
claim to possess. I would very much appreciate a code snippet that would 
get me started in the right direction.

      reply	other threads:[~2015-08-26 16:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-23 15:10 How to make weeks start from Sunday and be numbered from a custom date Meir Goldenberg
2015-08-23 18:04 ` Nick Dokos
2015-08-23 19:12   ` Bill Burdick
2015-08-26 16:37     ` Meir Goldenberg [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=loom.20150826T183304-231@post.gmane.org \
    --to=mgoldenbe@gmail.com \
    --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).