comparison doc/lispref/modes.texi @ 102151:328f4b370b74

Remove duplicate words.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 20 Feb 2009 12:36:50 +0000
parents 1a1c4c8eb2c8
children e81a0c5f14b1
comparison
equal deleted inserted replaced
102150:8b8ff4bab8c0 102151:328f4b370b74
374 rarely of any use in the minibuffer. Major modes such as Dired or 374 rarely of any use in the minibuffer. Major modes such as Dired or
375 Rmail that do not allow self-insertion of text can reasonably redefine 375 Rmail that do not allow self-insertion of text can reasonably redefine
376 letters and other printing characters as special commands. 376 letters and other printing characters as special commands.
377 377
378 @item 378 @item
379 Major modes modes for editing text should not define @key{RET} to do 379 Major modes for editing text should not define @key{RET} to do
380 anything other than insert a newline. However, it is ok for 380 anything other than insert a newline. However, it is ok for
381 specialized modes for text that users don't directly edit, such as 381 specialized modes for text that users don't directly edit, such as
382 Dired and Info modes, to redefine @key{RET} to do something entirely 382 Dired and Info modes, to redefine @key{RET} to do something entirely
383 different. 383 different.
384 384
2706 @node Customizing Keywords 2706 @node Customizing Keywords
2707 @subsection Customizing Search-Based Fontification 2707 @subsection Customizing Search-Based Fontification
2708 2708
2709 You can use @code{font-lock-add-keywords} to add additional 2709 You can use @code{font-lock-add-keywords} to add additional
2710 search-based fontification rules to a major mode, and 2710 search-based fontification rules to a major mode, and
2711 @code{font-lock-remove-keywords} to removes rules. 2711 @code{font-lock-remove-keywords} to remove rules.
2712 2712
2713 @defun font-lock-add-keywords mode keywords &optional how 2713 @defun font-lock-add-keywords mode keywords &optional how
2714 This function adds highlighting @var{keywords}, for the current buffer 2714 This function adds highlighting @var{keywords}, for the current buffer
2715 or for major mode @var{mode}. The argument @var{keywords} should be a 2715 or for major mode @var{mode}. The argument @var{keywords} should be a
2716 list with the same format as the variable @code{font-lock-keywords}. 2716 list with the same format as the variable @code{font-lock-keywords}.