From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: tagging text, not headlines Date: Tue, 5 Feb 2013 18:31:56 +0100 Message-ID: <20130205173156.GJ30767@kuru.dyndns-at-home.com> References: <87sj5b1wtz.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2mNI-0001nX-Aj for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 12:32:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2mNF-0003yg-Ae for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 12:32:04 -0500 Received: from mail-bk0-f54.google.com ([209.85.214.54]:50855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2mNF-0003yM-34 for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 12:32:01 -0500 Received: by mail-bk0-f54.google.com with SMTP id w5so214488bku.13 for ; Tue, 05 Feb 2013 09:32:00 -0800 (PST) Content-Disposition: inline In-Reply-To: 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: emacs-orgmode@gnu.org On Mon, Feb 04, 2013 at 07:03:01PM -0500, 42 147 wrote: > > It would be nice to keep things in the org-style (e.g., :favorite song: is > preferable to "<--- favorite song," just on rudimentary aesthetic grounds. I often put in my own cookies inside floawing text. For example, I label doubts in my notes with a "(?)". In the example below, I have a doubt about comment 2. Some statement - Comment 1 - Comment 2 (?) Then I can easily look for it with occur or grep from the commandline. If you want fontification for cookies like above, you can try something like this (untested): ;; font-lock customisations (defface my-global-tag-face '((t (:background "royalblue4" :foreground "thistle" :weight bold))) "Face for the global tags." :group 'my-faces) (add-hook 'find-file-hook (lambda () (font-lock-add-keywords nil '(("\\<[ (]\\([a-zA-Z0-9]\\+\\)[) ]\\>" 1 'my-global-tag-face prepend))))) Hope this helps, -- Suvayu Open source is the future. It sets us free.