emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-orgmode] A remember/notepad add on to org-mode


From: Carsten Dominik
Subject: Re: [Emacs-orgmode] A remember/notepad add on to org-mode
Date: Sun, 12 Mar 2006 08:11:32 +0100

This feels to me like a short version of what remember does. So why don't you just use remember for this and get a link back to where you were when you decided to make this entry?

- Carsten

On Mar 12, 2006, at 1:54, Charles Cave wrote:

Before I discovered org-mode (and Remember Mode)
I had a small customisation in my .emacs file to open
a "Journal file", go to the end of the file, insert the data
and time, then allow me to enter a note. I would save the buffer
and close it.

Now that I am using org-mode, I made some modifications
to write my notes to a file "journal.org" and bind a
key combination to invoke the function.

So when I am using Emacs I can quickly write notes by
entering the command C-c n

I use GNU Emacs 21.3.1 running on Windows XP

Maybe this functionality could be added to org-mode?


Here are the lines from .emacs

(defun journal ()
  (interactive)
  ; customise the following line for your file name
  (find-file "c:/homes/charles/journal.org")
  (end-of-buffer)
  (insert "\n** Topic: ")
  (insert-datetime-string)
  (insert "\n")
)

(global-set-key (kbd "C-c n") 'journal)

(defun insert-datetime-string ()
  "Insert a nicely formated date time string."
  (interactive)
  (insert (format-time-string "%Y-%m-%d %a %H:%M" ))
)




_______________________________________________
Emacs-orgmode mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477





reply via email to

[Prev in Thread] Current Thread [Next in Thread]