emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Enriched/Org is a colorful Org
Date: Wed, 10 Apr 2013 13:26:33 +0200	[thread overview]
Message-ID: <79ACBBC4-8DD0-4C06-AC61-F53BDC48EC4B@gmail.com> (raw)
In-Reply-To: <86wqsabpj0.fsf@somewhere.org>


On 10 apr. 2013, at 13:20, "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> wrote:

> Carsten Dominik wrote:
>> On 10 apr. 2013, at 12:48, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
>>> On Wed, Apr 10, 2013 at 12:16:28PM +0200, Carsten Dominik wrote:
>>>> On 10 apr. 2013, at 11:54, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
>>>>> On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
>>>>>> 
>>>>>> See "Side note" towards the end of this message
>>>>>> 
>>>>>>      http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
>>>>>> 
>>>>> 
>>>>> This request is common enough; every time it comes up overlays are
>>>>> proposed as a solution.  It would be good if this is available even as a
>>>>> library outside of Org.
>>>> 
>>>> Yes, overlays are better.  However, maybe I am just no getting it, but
>>>> what is even the purpose of facemenu?  AFAICS, the faces are
>>>> non-permanent, so when I save the file and reopen it, all the faces
>>>> are gone.  I really cannot see a useful application for this.
>>> 
>>> AFAIR, the use cases presented so far involved adding highlighting-like
>>> information in Org files.  If the overlays are generated consistently
>>> based on the user's setup, it doesn't matter if they are non-permanent
>>> (as in not part of the Org file, but dependent on the Emacs setup
>>> instead).  Of course this means the highlighting information will not be
>>> portable; but I don't think people mind that.
>>> 
>>> I personally do not find any use for the feature as such; although it
>>> might be interesting to be able to insert plain text cookies in Org
>>> files and have them highlighted in some fashion.  I could then use a
>>> list of ideas like this:
>>> 
>>> Some topic ...
>>> 1. Idea 1
>>> 2. Idea 2 (?)
>>> 
>>> where I'm doubtful about idea (2); having (?) highlighted would remind
>>> me of that.  Just an idea.
>> 
>> Yes, this would make sense if the highlighting would be reestablished
>> automatically next time you visit the file.  If not, it would be pretty
>> useless in my eyes.
> 
> IIUC, I do use something similar: automatic highlighting of some words, hooked
> on the mode (so, permanent... for me).
> 
> --8<---------------cut here---------------start------------->8---
>  (defface lvn/highlight-face
>    '((t (:weight normal :slant normal :box '(:line-width 1 :color "#CC0000")
>          :foreground "#CC0000" :background "#FFFF88")))
>    "Face for making FIXME and other warnings stand out.")
> 
>  (defvar lvn/highlight-org-regexps
>    "\\(FIXME\\|BUG\\|XXX\\|[Ee]rror\\|[Ww]arning\\|WARNING\\)"
>    "Patterns to highlight (for Org mode only).")
> 
>  ;; set up highlighting of special patterns for Org mode only
>  (dolist (mode '(org-mode))
>    (font-lock-add-keywords mode
>     `((,lvn/highlight-org-regexps 1 'lvn/highlight-face prepend))))
> --8<---------------cut here---------------end--------------->8---

Yes, this is definitely very useful, I do similar stuff for FIXME etc.

- Carsten


> 
> Best regards,
>  Seb
> 
> -- 
> Sebastien Vauban
> 
> 

  reply	other threads:[~2013-04-10 11:26 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-10  4:02 Enriched/Org is a colorful Org Jambunathan K
2013-04-10  9:54 ` Suvayu Ali
2013-04-10 10:16   ` Carsten Dominik
2013-04-10 10:39     ` Torsten Wagner
2013-04-10 10:48     ` Suvayu Ali
2013-04-10 10:53       ` Carsten Dominik
2013-04-10 11:20         ` Sebastien Vauban
2013-04-10 11:26           ` Carsten Dominik [this message]
2013-04-10 12:15           ` Jambunathan K
2013-04-10 11:57     ` Jambunathan K
2013-04-10 16:21     ` Eli Zaretskii
2013-04-10 16:43       ` Jambunathan K
2013-04-10 17:13         ` Eli Zaretskii
2013-04-10 19:58       ` Carsten Dominik
2013-04-10 20:16         ` Sebastien Vauban
2013-04-11  2:58           ` Carsten Dominik
2013-04-11 17:30             ` Eli Zaretskii
2013-04-11 22:49               ` Carsten Dominik
2013-04-12  6:41                 ` Eli Zaretskii
2013-04-12  7:13                   ` Carsten Dominik
2013-04-12  8:31                     ` Eli Zaretskii
2013-04-12 10:56                       ` Carsten Dominik
2013-04-12 11:49                         ` Torsten Wagner
2013-04-12 13:03                           ` Eli Zaretskii
2013-04-12 18:00                             ` Suvayu Ali
2013-04-12 18:38                               ` Eli Zaretskii
2013-04-13 10:50                                 ` Suvayu Ali
2013-04-12 12:36                         ` Eli Zaretskii
2013-04-13 12:24                           ` Sean O'Halpin
2013-04-13 14:38                             ` Jambunathan K
2013-04-13 15:01                             ` Eli Zaretskii
2013-04-12  8:35                     ` Bastien
2013-04-12 14:45                       ` François Pinard
2013-04-18 20:37                         ` Samuel Wales
2013-04-11 17:27         ` Eli Zaretskii
2013-04-11 22:46           ` Carsten Dominik
2013-04-10 12:12   ` Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=79ACBBC4-8DD0-4C06-AC61-F53BDC48EC4B@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).