Write yourself a shell script called "n". Put this in it:
#!/bin/sh
notefile=/home/me/notefile
date >> $notefile
emacs $notefile -f end-of-buffer
I recommend this instead of cat >> notefile because:
- One day you'll be in such a hurry that you'll fumblefinger the >> and type > instead and blow away your file.
- Emacs starts in five one-hundredths of a second on my Mac Mini. It takes a tenth of a second to start on a ten year old Celeron-based system I have sitting around. If you can't wait that long to start typing, then you're already a machine and don't need to take notes. :)
If you insist on avoiding a text editor, use a shell function:
n () { date >> /home/me/notefile; cat >> /home/me/notefile; }
which should work in all shells claiming Bourne shell compatibility.