emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ryan Thompson <rct@thompsonclan.org>
To: grayarea@reddagger.org
Cc: emacs-orgmode@gnu.org
Subject: Re: making key binding for timestamp alternative by default
Date: Sat, 30 Jan 2010 10:58:44 -0800	[thread overview]
Message-ID: <2a4ba2fd1001301058k23c38a88r425f469e5cecba17@mail.gmail.com> (raw)
In-Reply-To: <1264877285.31673.95.camel@firefly>


[-- Attachment #1.1: Type: text/plain, Size: 1544 bytes --]

All you need to do is define a function that supplies the prefix to
org-time-stamp:

(defun org-time-stamp-with-time (&optional inactive)
  "Prompt for a date/time and insert a time stamp containing a
  date and time. All parts of a date not specified by the user
  will be filled in from the current date/time. So if you press
  just return without typing anything, the time stamp will
  represent the current date/time. If there is already a
  timestamp at the cursor, it will be modified."
  (interactive)
  (org-time-stamp t inactive))

Then bind that you a key.

On Sat, Jan 30, 2010 at 10:48 AM, John Withers <grayarea@reddagger.org>wrote:

> Folks,
>
> I am trying to figure out what to add to my .emacs to make the normal
> key binding call to org-time-stamp into the version with the C-u
> modifier by default.
>
> That is, in the default bindings, I am trying to make
> C-c .
> Perform the action that is normally performed by
> C-u C-c .
>
> I am sure this is dead simple, but I have no immediate clue how to do
> it. If these were two different functions I would know how to do it, but
> using the key binding commands I don't know how to tell my key binding
> that I want the C-u version.
>
> Any help would be greatly appreciated, as I am sure I will have use for
> this in many other places as well.
>
> -john
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 2091 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2010-01-30 18:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-30 18:48 making key binding for timestamp alternative by default John Withers
2010-01-30 18:58 ` Ryan Thompson [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=2a4ba2fd1001301058k23c38a88r425f469e5cecba17@mail.gmail.com \
    --to=rct@thompsonclan.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=grayarea@reddagger.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).