|
From: | Julian Burgos |
Subject: | Re: [O] Newbie question |
Date: | Fri, 08 Feb 2013 13:15:19 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
Hi Ken,If you do <C-u C-c .> you will get an active timestamp with date and time. <C-u C-c !> will give you an inactive timestamp with date and time. I also have this code in my .emacs file, so whenever I create a headline I get an inactive timestamp automatically. It should be easy to change to get an active timestamp if you want.
;------------------------------------------------------------------------------ ;Creating new headlines insert inactive timestamps automatically (defun bh/insert-inactive-timestamp () (interactive) (org-insert-time-stamp nil t t nil nil nil)) (defun bh/insert-heading-inactive-timestamp () (save-excursion (org-return) (org-cycle) (bh/insert-inactive-timestamp))) (add-hook 'org-insert-heading-hook 'bh/insert-heading-inactive-timestamp) ;------------------------------------------------------------------------- Enjoy! -- Julian Mariano Burgos, PhD Hafrannsóknastofnunin/Marine Research Institute Skúlagata 4, 121 Reykjavík, Iceland Sími/Telephone : +354-5752037 Bréfsími/Telefax: +354-5752001 Netfang/Email: address@hidden On 02/08/2013 12:50 PM, Ken wrote:
Hello all, I am a relative newbie to org-mode. Right now I use it for todo lists, I use it in conjunction with the diary, and I use it for journaling/note-taking. I am sure I am only using it fo a quarter or less of what it can be used for. Anyway, my question is rather simple. <CTRL-.> will allow you to insert a date. However, in my journal I use a full timestamp. Is there any way using a defined set of keys to insert a current TIMESTAMP on an entry (say as in a journal entry)? Thank you Ken
[Prev in Thread] | Current Thread | [Next in Thread] |