Next: , Previous: , Up: Introduction   [Contents][Index]


1.2 Activation

rec-mode should automatically activate when opening .rec files. To make sure files with extension .rec use rec-mode, add the rec-mode buffers need font-lock to be turned on - this is the default in Emacs2.

If the file doesn’t end in .rec, make the first line of a recfile look like this:

# -*- mode: rec -*-

which will select rec-mode for this buffer no matter what the file’s name is.


Footnotes

(2)

If you don’t use font-lock globally, turn it on in the rec buffer with (add-hook 'rec-mode-hook 'turn-on-font-lock)