From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Timestamp: Forward or backward by a week Date: Tue, 15 May 2012 10:07:43 -0400 Message-ID: <3306.1337090863@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUIPn-0002nI-Ow for emacs-orgmode@gnu.org; Tue, 15 May 2012 10:07:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUIPi-0007R6-Is for emacs-orgmode@gnu.org; Tue, 15 May 2012 10:07:51 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:15473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUIPi-0007PM-Ci for emacs-orgmode@gnu.org; Tue, 15 May 2012 10:07:46 -0400 In-Reply-To: Message from SW of "Tue, 15 May 2012 13:34:07 -0000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: SW Cc: emacs-orgmode@gnu.org SW 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.