Re: highlighting let+



On 2012-01-22, Tamas Papp <tkpapp@xxxxxxxxx> wrote:

How can I highlight the symbol `let+' in Emacs (SLIME etc, standard setup)?

I tried

(font-lock-add-keywords nil
'(("let+" . font-lock-keyword-face)))

but the `+' isn't highlighted, only the `let'.

"let\\+" works here. But nil means, that it's only set for
the current buffer. If you want to set the keyword for example for
lisp-mode, you have to replace nil with 'lisp-mode.

Regards

Joerg
.



Relevant Pages

  • Re: Adding a font-lock face to a major mode
    ... It's a nop. ... > nil rather than `lisp-mode' as the first argument. ... Thanks for the tip Stefan. ...
    (comp.emacs.xemacs)
  • Re: Adding a font-lock face to a major mode
    ... Follow the recommendation in the docstring of font-lock-add-keywords and use ... nil rather than `lisp-mode' as the first argument. ...
    (comp.emacs.xemacs)
  • Re: Data loss appending data to file
    ... there was a call to SetFilePointer before WriteFile to put the file pointer at the end. ... In this example, the destination is 8000 bytes, the source is 2000 bytes and the buffer is 32768 bytes. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Data loss appending data to file
    ... In this example, the destination is 8000 ... the source is 2000 bytes and the buffer is 32768 bytes. ... > SetFilePointer(destHandle, 0, nil, FILE_END); ... If we don't flush cache before closing file, ...
    (microsoft.public.win32.programmer.kernel)
  • {OS8Beta} Exception starting on WinXP Chinese version
    ... Context PC = 8 ... streamEncoderSource = nil ... buffer = a ByteArray ...
    (comp.lang.smalltalk)