[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add-to-list: factorization?
From: |
Joost Kremers |
Subject: |
Re: add-to-list: factorization? |
Date: |
Wed, 20 May 2020 11:04:56 +0200 |
User-agent: |
mu4e 1.4.6; emacs 27.0.91 |
On Wed, May 20 2020, Denis Bitouzé wrote:
┌────
│ (setq LaTeX-verbatim-environments-local '("foo"
│ "bar"
│ "baz"
│ ))
│ (dolist (env LaTeX-verbatim-environments-local)
│ (add-to-list 'LaTeX-indent-environment-list (list env
#'current-indentation)))
└────
Haven't you placed the `dolist` inside a `with-eval-after-load`,
like you did in your earlier version? Emacs is simply telling you
that the variable `LaTeX-indent-environtment-list` isn't defined
yet, which is true because the relevant AUCTeX file hasn't been
loaded yet.
If you use `with-eval-after-load`, the problem should go away.
--
Joost Kremers
Life has its moments