Variable: lock-file-mode

lock-file-mode is a buffer-local variable defined in files.el.gz.

Documentation

Non-nil if Lock-File mode is enabled.

Use the command lock-file-mode(var)/lock-file-mode(fun) to change this variable.

View in manual

Probably introduced at or before Emacs version 28.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(define-minor-mode lock-file-mode
  "Toggle file locking in the current buffer (Lock File mode)."
  :version "28.1"
  (setq-local create-lockfiles (and lock-file-mode t)))