Monday, June 19, 2023

Adding file local variables

There's a mechanism in emacs to customize file load into a buffer by initializing or overriding variables on a per file basis. Local Variables can be defined at the beginning of the file. These local variables get initialized during opening of the file.

-*- coding: utf-8; lexical-binding: t; -*-
-*- mode: org; buffer-read-only:t -*-

another version without the mode tag for other files.

-*- buffer-read-only:t -*-

Author: dgg

Created: 2023-06-19 Mon 23:09

Validate

No comments:

Post a Comment