Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert current time in the emacs org-mode

Tags:

emacs

org-mode

Is there a simple way to insert the current time (like TIME: [2012-07-02 Mon 16:44]) in the org-mode? In the manual there is a lot of stuff (clocks, deadlines, schedules), but most of them require entering the time manually.

like image 577
Ivan Oseledets Avatar asked Jul 02 '12 14:07

Ivan Oseledets


People also ask

How do I enter Org Mode in Emacs?

Emacs does not actually understand you are editing an Org document, yet. To enable Org mode on your current document, type M-x org-mode which will enable the Org mode on the current document. Those are minuses, not underscores.

Does Org mode come with Emacs?

Emacs has included Org Mode as a major mode by default since 2006. Bastien Guerry is the current maintainer, in cooperation with an active development community. Since its success in Emacs, some other systems now provide functions to work with org files.


2 Answers

In my installation, which is org-mode version 9, the following enters the current date and time without prompting anything

C-u C-u C-c . 
like image 40
anachronic Avatar answered Sep 28 '22 18:09

anachronic


C-u C-c . will insert a timestamp at point, though Org will still prompt you for a time (with the default being the current time).

More: "Creating timestamps" in the Org Mode manual.

like image 119
Jon Gauthier Avatar answered Sep 28 '22 18:09

Jon Gauthier