Skip to content

Commit

Permalink
readme: Provide lock-file-name-transforms example
Browse files Browse the repository at this point in the history
Closes #236.
  • Loading branch information
tarsius committed Apr 16, 2024
1 parent 554d890 commit caf2f7f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ A function ~no-littering-theme-backups~ is provided, which does theme
these features. Before calling that function from your init files,
you should read its docstring and implementation.

**** Lock files

To put lock files into a single repository, you could use something
like the following. See the docstring to learn about reasons why you
might want to refrain from doing that.

#+begin_src emacs-lisp
(let ((dir (no-littering-expand-var-file-name "lock-files/")))
(make-directory dir t)
(setq lock-file-name-transforms `((".*" ,dir t))))
#+end_src

**** Recent files

If you use ~recentf~ then you might find it convenient to exclude all
Expand Down

0 comments on commit caf2f7f

Please sign in to comment.