From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hugo Schmitt" Subject: Re: Patch to allow quotes showing on *remember* Date: Tue, 15 Jan 2008 08:26:22 -0300 Message-ID: <2f1c7d020801150326l5703d6ekb0b2e54197b49812@mail.gmail.com> References: <2f1c7d020801141145ib4422ady3febf585dc1256c@mail.gmail.com> <2f1c7d020801150304u8884e6dvd3257822634456c2@mail.gmail.com> <009BA5F9-6CCF-4DA0-B2D7-E5535F9B05AD@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEjw1-00073J-HB for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:26:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEjw0-00072D-L6 for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:26:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEjw0-00071x-96 for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:26:24 -0500 Received: from wa-out-1112.google.com ([209.85.146.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEjvz-00006y-Pb for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:26:24 -0500 Received: by wa-out-1112.google.com with SMTP id k34so4333632wah.10 for ; Tue, 15 Jan 2008 03:26:22 -0800 (PST) In-Reply-To: <009BA5F9-6CCF-4DA0-B2D7-E5535F9B05AD@gmail.com> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten, Yeah, mostly for fun, but for example Sacha used it for learning English-Japanese translations.. If there is a better way to fix the remember buffer, please tell me. Here's a excerpt from Sacha's post: Adding Other Text to the Remember Buffer Remember has plenty of hooks that let you modify the behavior. For example, you might want to insert a random tagline or fortune-cookie saying whenever you create a note. This is a fun way to encourage yourself to write more, because then there's a little surprise every time you open a Remember buffer. and here is the code that inserts that (rest is on the blog): (eval-after-load 'remember '(progn (defadvice remember (after wicked activate) "Add random tagline." (save-excursion (goto-char (point-max)) (insert "\n\n" (wicked/random-tagline) "\n\n"))))) Maybe i can implement that "cleaning the remember buffer" also as an advice or hook? Thanks in advance. Hugo Here's the link: http://sachachua.com/wp/2008/01/13/capturing-notes-with-remember/ search for subtitle "Adding Other Text to the Remember Buffer" On Jan 15, 2008 8:17 AM, Carsten Dominik wrote: > Hi Hugo, > > On Jan 15, 2008, at 12:04 PM, Hugo Schmitt wrote: > > > Hi again. > > Let me just show you the use case. Take a look at my current > > remember buffer: > > > > ---start > > ## Filing location: Select interactively, default, or last used: > > ## C-u C-c C-c to select file and header location interactively. > > ## C-c C-c "~/hugo/docs/org/todo.org" -> "* Inbox" > > ## C-u C-u C-c C-c "???" -> "* ???" > > ## To switch templates, use `C-c r'. To abort use `C-c C-k'. > > > > * TODO todo title goes here > > [2008-01-15 ter] > > > > ## An Emacs reference mug is what I want. It would hold ten gallons > > of coffee. > > ## -- Steve VanDevender > > ---end > > > > I need that patch so that the bottom lines (the quote) aren't appended > > into the org file after remember. > > I was just saying that, if more people use something like this *and* > > it doesn't mess up for people who don't, the patch could be added to > > org. > > > My question is: how did this extra commend get into the remember buffer > in the first place? Why is it there? just for fun? > > - Carsten > > > > > > > > -hugo > > > > > > On Jan 15, 2008 7:55 AM, Carsten Dominik > > wrote: > >> Hi Hugo, > >> > >> I am not sure what the purpose of this is. The ## stuff at the > >> beginning > >> is stuff to remind the user on how to proceed further. What is the > >> idea > >> of Sacha you are referring to? What is the use case? > >> > >> Thanks. > >> > >> > >> > >> On Jan 14, 2008, at 8:45 PM, Hugo Schmitt wrote: > >> > >>> Hi folks! > >>> I'm sending this as a suggestion. > >>> Right now the function 'org-remember-handler' removes the lines on > >>> the > >>> beginning of the buffer that start with "##" (the ones explaining > >>> usage, shortcuts, etc) > >>> Yesterday i was trying out sachac's idea of putting quotes into > >>> remember (on the bottom), but the text that went there was being > >>> added > >>> to the todo.org with the actual todo. > >>> > >>> W/ the fix org also removes the lines on the end that begin with > >>> '##'. > >>> > >>> Cheers, > >>> -Hugo > >>> _______________________________________________ > >>> Emacs-orgmode mailing list > >>> Remember: use `Reply All' to send replies to the list. > >>> Emacs-orgmode@gnu.org > >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >> > >> > >