Emacs 24 introduced the ability to disable the creation of the infamous
.#file-name lock files.
Evaluating the following lisp form will completely disable Emacs ability to lock files to prevent concurrent changes.
Is there a way to set Emacs to save lock files in a dedicated directory, similarly to what happens with auto-save and backup files?
(setq create-lockfiles nil)