[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About the new directory org-persist in .emacs.d
From: |
Angelo Graziosi |
Subject: |
Re: About the new directory org-persist in .emacs.d |
Date: |
Mon, 5 Dec 2022 16:14:56 +0100 (CET) |
> Il 05/12/2022 06:59 Thierry Volpiatto <thievol@posteo.net> ha scritto:
>
>
> > So, How I can disable the creation of that garbage from my .emacs.d
> > directory?
>
> (setq org-persist-disable-when-emacs-Q t)
> (defun tv/advice--org-persist (old-fn &rest args)
> (let (user-init-file)
> (apply old-fn args)))
> (advice-add 'org-persist-write :around #'tv/advice--org-persist)
> (advice-add 'org-persist-read :around #'tv/advice--org-persist)
> (advice-add 'org-persist-gc :around #'tv/advice--org-persist)))
>
Thanks! it seems to work.. I had to remove two extra `))` at the end of the
last row..
Re: About the new directory org-persist in .emacs.d, Stefan Monnier, 2022/12/02
- Re: About the new directory org-persist in .emacs.d, Max Nikulin, 2022/12/02
- Re: About the new directory org-persist in .emacs.d, Angelo Graziosi, 2022/12/03
- Re: About the new directory org-persist in .emacs.d, Ihor Radchenko, 2022/12/04
- Re: About the new directory org-persist in .emacs.d, Angelo Graziosi, 2022/12/04
- Re: About the new directory org-persist in .emacs.d, Angelo Graziosi, 2022/12/04
- Re: About the new directory org-persist in .emacs.d, Ihor Radchenko, 2022/12/04
- Re: About the new directory org-persist in .emacs.d, Angelo Graziosi, 2022/12/04
Re: About the new directory org-persist in .emacs.d, Eli Zaretskii, 2022/12/03