help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Customizing font-lock-mark-block-function in minor-mode


From: Tobias C. Rittweiler
Subject: Customizing font-lock-mark-block-function in minor-mode
Date: Tue, 28 Apr 2009 13:21:19 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux)

Hi all,

What is the best way for a minor mode to customize the value of
`font-lock-mark-block-function' of its major-mode?

Adding a hook to the major-mode-hook which modifies this variable is
later overwritten by the binding in `font-lock-defaults'.

Adding a hook which modifies `font-lock-defaults' appropriately is not
very easy without making explicit assumption of the major-mode's
particular format of `font-lock-defaults'. These assumption may break
under my feet in the future.

What am I missing?,

  -T.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]