emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get "remember" working properly?
@ 2014-11-18 17:58 Sharon Kimble
  2014-11-19  4:44 ` Richard Lawrence
  0 siblings, 1 reply; 5+ messages in thread
From: Sharon Kimble @ 2014-11-18 17:58 UTC (permalink / raw)
  To: org-mode

[-- Attachment #1: Type: text/plain, Size: 4151 bytes --]


I am using "remember" as well as "org-capture", meaning that I have
them both setup and working, but there are two things that I'm not
sure about. This is my "remember setup" -

--8<---------------cut here---------------start------------->8---
* remember
** setup remembering
#+BEGIN_SRC emacs-lisp
;;(autoload 'remember "remember" nil t)
(require 'remember)
;;(require 'org-capture)
(require 'org-remember)

;;(setq org-default-notes-file (concat org-directory "~/.emacs.d/org/remember.org"))
;;(define-key global-map (kbd "C-c c") 'org-capture)
;;(global-set-key (kbd "C-c r") 'org-remember)
#+END_SRC
[2014-11-12 Wed 19:19]

#+BEGIN_SRC emacs-lisp
(setq org-directory "~/.emacs.d/org/")
 (setq org-default-notes-file "~/.emacs.d/org/remember.org")
 (setq remember-annotation-functions '(org-remember-annotation))
 (setq remember-handler-functions '(org-remember-handler))
 (add-hook 'remember-mode-hook 'org-remember-apply-template)
 (global-set-key (kbd "C-c r") 'org-remember)
;; (define-key global-map "C-c r" 'org-remember)
#+END_SRC
[2014-11-16 Sun 06:34]

** remember templates
#+BEGIN_SRC emacs-lisp
(setq org-remember-templates
    '(("Todo" ?t "* TODO %^{Brief Description} %^g\n%?\nAdded: %U" "~/.emacs.d/org/remember.org" "Tasks")
     ("Journal"   ?j "** %^{Head Line} %U %^g\n%i%?"  "~/.emacs.d/org/journal.org") 
      ("Clipboard" ?c "** %^{Head Line} %U %^g\n%c\n%?"  "~/.emacs.d/org/remember.org")
      ("Receipt"   ?r "** %^{BriefDesc} %U %^g\n%?"   "~/.emacs.d/org/finances.org")
      ("Book" ?b "** %^{Book Title} %t :BOOK: \n%[~/.emacs.d/.book_template.txt]\n"
         "~/org/journal.org")
          ("Film" ?f "** %^{Film Title} %t :FILM: \n%[~/.emacs.d/.film_template.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/privnotes.org")
      ("Contact" ?o "\n* %^{Name} :CONTACT:\n% ~/.emacs.d/org/contact.txt]\n"
               "~/org/privnotes.org")
     )
   )
#+END_SRC
;; source = http://members.optusnet.com.au/~charles57/GTD/remember.html
[2014-11-16 Sun 06:38]
** and org-mode
#+BEGIN_SRC emacs-lisp
(setq remember-annotation-functions '(org-remember-annotation))
    (setq remember-handler-functions '(org-remember-handler))
    (add-hook 'remember-mode-hook 'org-remember-apply-template)
#+END_SRC
[2014-11-16 Sun 08:24]

**  Remember some history
#+BEGIN_SRC emacs-lisp
;; savehist keeps track of some history
(setq savehist-additional-variables
      ;; search entries
      '(search ring regexp-search-ring)
      ;; save every minute
      savehist-autosave-interval 60
      ;; keep the home clean
      savehist-file (concat user-emacs-directory "savehist"))
(savehist-mode t)
#+END_SRC
[2014-11-16 Sun 16:15]

**  Remember recent files
#+BEGIN_SRC emacs-lisp
;; save recent files
(require 'recentf)
(recentf-mode 1)
(setq recentf-save-file (concat user-emacs-directory "recentf")
      recentf-max-saved-items 200
      recentf-max-menu-items 20)
(recentf-mode t)
#+END_SRC
[2014-11-16 Sun 16:16]
--8<---------------cut here---------------end--------------->8---

With everything that I "remember" it shows it as, example only -

--8<---------------cut here---------------start------------->8---
* peace [2014-11-18 Tue 11:30] 
Ha! Well, I don't abuse the ice-cold tone for emails and other electronic ways of communication, switching is
easy. And certainly some people may not get it but the Latin phrase "Pax et bonum" works as a "yours truly" or
a "Good Bye!".
--8<---------------cut here---------------end--------------->8---

i.e. headline before the date. How do I get it the other way round
please, meaning "date - headline"?

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?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get "remember" working properly?
  2014-11-18 17:58 How to get "remember" working properly? Sharon Kimble
@ 2014-11-19  4:44 ` Richard Lawrence
  2014-11-19 17:50   ` Sharon Kimble
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Lawrence @ 2014-11-19  4:44 UTC (permalink / raw)
  To: emacs-orgmode

Hi Sharon,

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> #+BEGIN_SRC emacs-lisp
> (setq org-remember-templates
>     '(("Todo" ?t "* TODO %^{Brief Description} %^g\n%?\nAdded: %U" "~/.emacs.d/org/remember.org" "Tasks")
>      ("Journal"   ?j "** %^{Head Line} %U %^g\n%i%?"  "~/.emacs.d/org/journal.org") 
>       ("Clipboard" ?c "** %^{Head Line} %U %^g\n%c\n%?"  "~/.emacs.d/org/remember.org")
>       ("Receipt"   ?r "** %^{BriefDesc} %U %^g\n%?"   "~/.emacs.d/org/finances.org")
>       ("Book" ?b "** %^{Book Title} %t :BOOK: \n%[~/.emacs.d/.book_template.txt]\n"
>          "~/org/journal.org")
>           ("Film" ?f "** %^{Film Title} %t :FILM: \n%[~/.emacs.d/.film_template.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/privnotes.org")
>       ("Contact" ?o "\n* %^{Name} :CONTACT:\n% ~/.emacs.d/org/contact.txt]\n"
>                "~/org/privnotes.org")
>      )
>    )
> #+END_SRC

> With everything that I "remember" it shows it as, example only -
>
> * peace [2014-11-18 Tue 11:30] 
>
> 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/journal.org") 
  
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get "remember" working properly?
  2014-11-19  4:44 ` Richard Lawrence
@ 2014-11-19 17:50   ` Sharon Kimble
  2014-11-19 22:29     ` Nick Dokos
  0 siblings, 1 reply; 5+ messages in thread
From: Sharon Kimble @ 2014-11-19 17:50 UTC (permalink / raw)
  To: Richard Lawrence; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 4027 bytes --]

Richard Lawrence <richard.lawrence@berkeley.edu> writes:

> Hi Sharon,
>
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> #+BEGIN_SRC emacs-lisp
>> (setq org-remember-templates
>>     '(("Todo" ?t "* TODO %^{Brief Description} %^g\n%?\nAdded: %U" "~/.emacs.d/org/remember.org" "Tasks")
>>      ("Journal"   ?j "** %^{Head Line} %U %^g\n%i%?"  "~/.emacs.d/org/journal.org") 
>>       ("Clipboard" ?c "** %^{Head Line} %U %^g\n%c\n%?"  "~/.emacs.d/org/remember.org")
>>       ("Receipt"   ?r "** %^{BriefDesc} %U %^g\n%?"   "~/.emacs.d/org/finances.org")
>>       ("Book" ?b "** %^{Book Title} %t :BOOK: \n%[~/.emacs.d/.book_template.txt]\n"
>>          "~/org/journal.org")
>>           ("Film" ?f "** %^{Film Title} %t :FILM: \n%[~/.emacs.d/.film_template.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/privnotes.org")
>>       ("Contact" ?o "\n* %^{Name} :CONTACT:\n% ~/.emacs.d/org/contact.txt]\n"
>>                "~/org/privnotes.org")
>>      )
>>    )
>> #+END_SRC
>
>> With everything that I "remember" it shows it as, example only -
>>
>> * peace [2014-11-18 Tue 11:30] 
>>
>> 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/journal.org") 
>   
> 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’s now
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 -

--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:

- If a function in `org-ctrl-c-ctrl-c-hook' recognizes this location,
  this is what we do.

- If the cursor is on a statistics cookie, update it.

- 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.

- If the current buffer is a capture buffer, close note and file it.
--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. 

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get "remember" working properly?
  2014-11-19 17:50   ` Sharon Kimble
@ 2014-11-19 22:29     ` Nick Dokos
  2014-11-20  9:19       ` Sharon Kimble
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2014-11-19 22:29 UTC (permalink / raw)
  To: emacs-orgmode

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> ...
>
> 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. 
>

As I said before, org-remember is obsolete.

   http://thread.gmane.org/gmane.emacs.orgmode/92509/focus=92522

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get "remember" working properly?
  2014-11-19 22:29     ` Nick Dokos
@ 2014-11-20  9:19       ` Sharon Kimble
  0 siblings, 0 replies; 5+ messages in thread
From: Sharon Kimble @ 2014-11-20  9:19 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

Nick Dokos <ndokos@gmail.com> writes:

> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> ...
>>
>> 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. 
>>
>
> As I said before, org-remember is obsolete.
>
>    http://thread.gmane.org/gmane.emacs.orgmode/92509/focus=92522

I totally agree, and after finding how to convert remember templates
to org-capture[fn:1], I've totally moved over to using org-capture,
which is working very well.

Sharon.

Footnotes:

[fn:1] http://orgmode.org/manual/Capture.html

-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-20  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 17:58 How to get "remember" working properly? Sharon Kimble
2014-11-19  4:44 ` Richard Lawrence
2014-11-19 17:50   ` Sharon Kimble
2014-11-19 22:29     ` Nick Dokos
2014-11-20  9:19       ` Sharon Kimble

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).