all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why no setq, eval in a dir-locals?
@ 2022-02-11 10:57 Colin Baxter 😺
  2022-02-11 11:22 ` irek
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Baxter 😺 @ 2022-02-11 10:57 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

To backup tex files in the same working directory, I have a .dir-locals
file containing the following lines:

#+begin_src emacs-lisp
((latex-mode . (
(kept-old-versions . 2)
(kept-new-versions . 16)
(delete-old-versions . t)
(make-backup-files . t)
(version-control . t)
)))
#+end_src
It works well.

I am curious though as to why I do not seem to need "setq" and "eval"
terms. These are needed however if I wish to put the backups in a
sub-directory:

#+begin_src emacs-lisp
((latex-mode . (
(eval setq backup-directory-alist '(("." . "sub-directory/")))
(kept-old-versions . 2)
(kept-new-versions . 16)
,,, etc.
#+end_src

This too works well.

Can anyone tell me why the two cases appear to be different.

Thank you.

Best wishes,




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-11 12:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11 10:57 Why no setq, eval in a dir-locals? Colin Baxter 😺
2022-02-11 11:22 ` irek
2022-02-11 12:01   ` Colin Baxter

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.