From: Nick Dokos <nicholas.dokos@hp.com>
To: SW <sabrewolfy@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Timestamp: Forward or backward by a week
Date: Tue, 15 May 2012 10:07:43 -0400 [thread overview]
Message-ID: <3306.1337090863@alphaville> (raw)
In-Reply-To: Message from SW <sabrewolfy@gmail.com> of "Tue, 15 May 2012 13:34:07 -0000." <loom.20120515T152931-359@post.gmane.org>
SW <sabrewolfy@gmail.com> wrote:
> Pressing S-left/right anywhere on a timestamp decreases/increases it by one day.
>
> Pressing S-down/up on a component of a timestamp decreases/increases it by one
> unit of that component.
>
> How can we include an easy and quick way to decrease/increase the timestamp by
> one week. I find myself having to do that quite often (increase). It's not
> difficult to hit S-right/up seven times, but there is the possibility of
> miscounting.
>
I generally lean on S-up and watch the changing date until it gets to
where I want it - no counting.
> Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``?
>
>
I wouldn't bother but I'm not you: if you really want to, you can define a trivial function
(defun sw-one-week-bump ()
(org-timestamp-up-day 7))
and bind it.
If you need help with the latter, see the emacs manual:
(info "(emacs) Customizing Key Bindings")
and for the gory details, the emacs lisp manual:
(info "(elisp) Keymaps")
Nick
PS. Not sure how much emacs you know - if any/all of this is obvious, please disregard.
next prev parent reply other threads:[~2012-05-15 14:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 13:34 Timestamp: Forward or backward by a week SW
2012-05-15 13:40 ` Christian Moe
2012-05-15 13:42 ` SW
2012-05-15 14:15 ` Christian Moe
2012-05-15 14:16 ` SW
2012-05-15 14:07 ` Nick Dokos [this message]
2012-05-15 14:24 ` SW
2012-05-15 14:57 ` Nick Dokos
2012-05-15 15:02 ` Brian van den Broek
2012-05-15 16:27 ` SW
2012-05-15 16:46 ` Nick Dokos
2012-05-15 18:21 ` Memnon Anon
2012-05-15 18:35 ` Nick Dokos
2012-05-15 18:35 ` SW
2012-05-15 18:50 ` Nick Dokos
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=3306.1337090863@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=sabrewolfy@gmail.com \
/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).