emacs-devel
[Top][All Lists]
Advanced

[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..



reply via email to

[Prev in Thread] Current Thread [Next in Thread]