Re: [O] tagging text, not headlines

2013-02-05 Thread Suvayu Ali
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.



Re: [O] tagging text, not headlines

2013-02-04 Thread Bastien
42 147 aeus...@gmail.com writes:

 I want to avoid over-headlining data.

 So in my playlist, I will list the songs as text, rather than as
 headlines.
 The problem is, I'd like to tag, in the following example, (8) Beata
 Viscera
 as my favorite composition in the Hilliard Ensemble performance.

 ** Classical
 *** Pérotin
  Description

 Pérotin (fl. c. 1200), also called Perotin the Great, was a European
 composer, believed to be French, who lived around the end of the 12th
 and
 beginning of the 13th century. He was the most famous member of the
 Notre
 Dame school of polyphony and the ars antiqua style.
  Performances
 * The Hilliard Ensemble

 (1) Viderunt Omnes
 (2) Veni Creator Spiritus
 (3) Alleluia Posui Adiutorium
 (4) O Maria Virginei
 (5) Dum Sigillum
 (6) Isalas Cecinit
 (7) Alleluia Nativitas
 (8) Beata Viscera
 (9) Sederunt Principes

Tagging outside headlines doesn't really make sense in Org, 
as all tagging-related features need the tag to be on the headline.

But you can still use... plain text + emacs power:


  (8) Beata Viscera - My favorite song!

M-x occur RET favorite RET

HTH,

-- 
 Bastien



Re: [O] tagging text, not headlines

2013-02-04 Thread 42 147
Sometimes I forget what org-mode is built on...

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.

But what you suggested will do.

2013/2/4 Bastien b...@altern.org

 42 147 aeus...@gmail.com writes:

  I want to avoid over-headlining data.
 
  So in my playlist, I will list the songs as text, rather than as
  headlines.
  The problem is, I'd like to tag, in the following example, (8) Beata
  Viscera
  as my favorite composition in the Hilliard Ensemble performance.
 
  ** Classical
  *** Pérotin
   Description
 
  Pérotin (fl. c. 1200), also called Perotin the Great, was a European
  composer, believed to be French, who lived around the end of the 12th
  and
  beginning of the 13th century. He was the most famous member of the
  Notre
  Dame school of polyphony and the ars antiqua style.
   Performances
  * The Hilliard Ensemble
 
  (1) Viderunt Omnes
  (2) Veni Creator Spiritus
  (3) Alleluia Posui Adiutorium
  (4) O Maria Virginei
  (5) Dum Sigillum
  (6) Isalas Cecinit
  (7) Alleluia Nativitas
  (8) Beata Viscera
  (9) Sederunt Principes

 Tagging outside headlines doesn't really make sense in Org,
 as all tagging-related features need the tag to be on the headline.

 But you can still use... plain text + emacs power:


   (8) Beata Viscera - My favorite song!

 M-x occur RET favorite RET

 HTH,

 --
  Bastien