From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: How to get "remember" working properly? Date: Wed, 19 Nov 2014 17:50:27 +0000 Message-ID: <877fyrqduk.fsf@skimble.plus.com> References: <87ioicz8ze.fsf@skimble.plus.com> <87lhn7u7d1.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr9Oy-0007yf-4v for emacs-orgmode@gnu.org; Wed, 19 Nov 2014 12:50:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xr9Oq-0005qv-80 for emacs-orgmode@gnu.org; Wed, 19 Nov 2014 12:50:47 -0500 Received: from avasout04.plus.net ([212.159.14.19]:60365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr9Op-0005py-TO for emacs-orgmode@gnu.org; Wed, 19 Nov 2014 12:50:40 -0500 In-Reply-To: <87lhn7u7d1.fsf@berkeley.edu> (Richard Lawrence's message of "Tue, 18 Nov 2014 20:44:42 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Lawrence Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Richard Lawrence writes: > Hi Sharon, > > Sharon Kimble writes: > >> #+BEGIN_SRC emacs-lisp >> (setq org-remember-templates >> '(("Todo" ?t "* TODO %^{Brief Description} %^g\n%?\nAdded: %U" "~/.e= macs.d/org/remember.org" "Tasks") >> ("Journal" ?j "** %^{Head Line} %U %^g\n%i%?" "~/.emacs.d/org/jo= urnal.org")=20 >> ("Clipboard" ?c "** %^{Head Line} %U %^g\n%c\n%?" "~/.emacs.d/org= /remember.org") >> ("Receipt" ?r "** %^{BriefDesc} %U %^g\n%?" "~/.emacs.d/org/fi= nances.org") >> ("Book" ?b "** %^{Book Title} %t :BOOK: \n%[~/.emacs.d/.book_templ= ate.txt]\n" >> "~/org/journal.org") >> ("Film" ?f "** %^{Film Title} %t :FILM: \n%[~/.emacs.d/.film_t= emplate.txt]\n" >> "~/org/journal.org") >> ("Someday" ?s "** %^{Someday Heading} %U\n%?\n" "~/.emacs.d/org= /someday.org") >> ("Private" ?p "\n* %^{topic} %T \n%i%?\n" "~/.emacs.d/org/privnote= s.org") >> ("Contact" ?o "\n* %^{Name} :CONTACT:\n% ~/.emacs.d/org/contact.tx= t]\n" >> "~/org/privnotes.org") >> ) >> ) >> #+END_SRC > >> With everything that I "remember" it shows it as, example only - >> >> * peace [2014-11-18 Tue 11:30]=20 >> >> i.e. headline before the date. How do I get it the other way round >> please, meaning "date - headline"? > > I think all you need to do here is move the "%U" in your templates > before the "%^{ ... }" that represents where you type in the headline. > > For example, the "Journal" template becomes: > > ("Journal" ?j "** %U %^{Head Line} %^g\n%i%?" "~/.emacs.d/org/journa= l.org")=20 >=20=20=20 > See the section on Template Expansion in the Capture section of the > manual for an explanation of what's going on here. > >> Also you close the entry by "C-c C-c" which, in my case, calls >> "Tags" again. How can I get it working right in this case please? > > Not sure about this -- I don't use remember -- but a good place to start > is to do C-h k C-c C-c in your capture buffer; this will tell you which > function is bound to C-c C-c. If it's not what you expect, the next > step is to figure out what it should be bound to and set the appropriate > function in the relevant keymap. > > Best, > Richard Thanks Richard. You were on the ball with swapping the dates position, and that=E2=80=99s n= ow working okay. However, the same can't be said for my "C-c C-c" problem. I've never been able to get "C-h anything" working, so I just "F1 k" which has the same effect. *Help* says - =2D-8<---------------cut here---------------start------------->8--- org-ctrl-c-ctrl-c is an interactive compiled Lisp function in `org.el'. (org-ctrl-c-ctrl-c &optional ARG) Set tags in headline, or update according to changed information at point. This command does many different things, depending on context: =2D If a function in `org-ctrl-c-ctrl-c-hook' recognizes this location, this is what we do. =2D If the cursor is on a statistics cookie, update it. =2D If the cursor is in a headline, prompt for tags and insert them into the current line, aligned to `org-tags-column'. When called with prefix arg, realign all tags in the current buffer. =2D If the current buffer is a capture buffer, close note and file it. =2D-8<---------------cut here---------------end--------------->8--- which explains why it is using the tag instruction as it only works if it is on the header part of the item. But it seems that it is not registering my *remember* buffer as a "capture buffer". However, org-capture is working well, prefacing my "timelog.org"" with CAPTURE- in front, like "CAPTURE-timelog.org". Maybe then it is time to retire "remember" as "org-capture" seems to have taken over? But that's for another post.=20 Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.4.1.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUbNhkAAoJEDaBgBkK+INb2JcQALoExxyjTqARWl+jmGw+XAjA W9945U4BKJzKzrKLzHIctGzGEzbK43viEqLt2FRiO72mg5Yde3K7+x65aQQLy4eP s45alIqeYNUAGGpopDr9lEzGqko2IdOnffibkdE1Pj73UYMlBaS/x6s9pzXx+Qn7 VwFPjWvV2TbETBuuMI79cPdzOmyzu2s5WpoahY+NupOdAQknoeLnYX7w9gOxP8LJ RjIQg5eoFOgaigpeWh1r6foB0mdGEsAgStQRkLTnjm9ew6qq1DJT+882RvvMtnU0 PodZZnjjnagp7mY19cWD169qTSqIxnf2dml/ORB/0c+kmW6atVFN4Ht9R6c6pibw NPexLzjaSYgqoStVHM0IImC/qy6YZwNMoKFkYEtrlGKKYTyluKGQU6TkPzT+ptpv oRf4hcrsXBvFbzQBd7I8wfum0bZMGXbl+R0bkZLffSr+VhHU3WgUT8mpt4uMsmyu 9sbP6OYak68YH6cIaXB3SdjpNB8CK7de0zDNTOk7g4U6+WcHgsfupAl0qSD0e7ho I6Zj0Szo9Re/U+3Bz7W/4yF18oVKwWokR/NsBZvx8GzYKeqxZAfEd29FW5ggo1hL b+zCDrYkFkb5VZbaI+39moziqXPIeE84Ez5SVElZseJxLFATs9FEPrAkGk37Sh0x hKSLjM9+aInFvNfpXfIr =AhgU -----END PGP SIGNATURE----- --=-=-=--