FG
💻 Software

Tell emacs what mode to use in file header

Fresh7 days ago
Mar 15, 20265462 views
Confidence Score0%
0%

Problem

Is there a built in way in emacs to to suggest what mode it should use? I have lots of properties files that doesn't have a file endings to guide emacs. Ideally I'd like to be able to put somthing like this in the file header

Error Output

# Emacs-Mode: <name of mode wanted>

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Tell emacs what mode to use in file header

Low Risk

You mean like this: There are two methods of doing this. In the first one, Emacs reads the first line of the file, looking for file variables to set. One of them is the mode to use for the file (in this case outline-mode). The line can start with an…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment