all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: coloring keywords in conversation
       [not found] <5b981811-7a16-40a1-889d-76729655ead6@z34g2000pro.googlegroups.com>
@ 2010-10-06  7:09 ` Florian Kaufmann
  2010-10-06  7:11   ` Florian Kaufmann
  2010-10-07 20:47   ` stef
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Kaufmann @ 2010-10-06  7:09 UTC (permalink / raw)
  To: help-gnu-emacs

Copy the following into a buffer, e.g. *scratch*. With point at the
end of it, hit C-x C-e (eval-last-sexp). In your mode, execute that
command with M-x highlight-conversation.

Cheers

Flo

(defun highlight-converstation ()
  (setq my-font-lock-keywords '("MyKeyWord" "MyKeyword2"
"MyKeyword3"))
  (modify-syntax-entry ?\" "\"")
  (set (make-local-variable 'font-lock-defaults) '(my-font-lock-
keywords)))



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

* Re: coloring keywords in conversation
  2010-10-06  7:09 ` coloring keywords in conversation Florian Kaufmann
@ 2010-10-06  7:11   ` Florian Kaufmann
  2010-10-07 20:47   ` stef
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Kaufmann @ 2010-10-06  7:11 UTC (permalink / raw)
  To: help-gnu-emacs

At the end of my defun, "my-font-lock-keywords" should be one symbol,
i.e. not separated by a newline



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

* Re: coloring keywords in conversation
  2010-10-06  7:09 ` coloring keywords in conversation Florian Kaufmann
  2010-10-06  7:11   ` Florian Kaufmann
@ 2010-10-07 20:47   ` stef
  1 sibling, 0 replies; 3+ messages in thread
From: stef @ 2010-10-07 20:47 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks for the code, Flo.
It was a big help.
Regards, Stef

Florian Kaufmann wrote:
> Copy the following into a buffer, e.g. *scratch*. With point at the
> end of it, hit C-x C-e (eval-last-sexp). In your mode, execute that
> command with M-x highlight-conversation.
>
> Cheers
>
> Flo
>
> (defun highlight-converstation ()
>   (setq my-font-lock-keywords '("MyKeyWord" "MyKeyword2"
> "MyKeyword3"))
>   (modify-syntax-entry ?\" "\"")
>   (set (make-local-variable 'font-lock-defaults) '(my-font-lock-
> keywords)))


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

end of thread, other threads:[~2010-10-07 20:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5b981811-7a16-40a1-889d-76729655ead6@z34g2000pro.googlegroups.com>
2010-10-06  7:09 ` coloring keywords in conversation Florian Kaufmann
2010-10-06  7:11   ` Florian Kaufmann
2010-10-07 20:47   ` stef

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.