From: Angelo Graziosi <angelo.g0@libero.it>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: emacs-devel@gnu.org, lekktu@gmail.com
Subject: Re: About the new directory org-persist in .emacs.d
Date: Mon, 5 Dec 2022 16:14:56 +0100 (CET) [thread overview]
Message-ID: <195946485.1168081.1670253296551@mail1.libero.it> (raw)
In-Reply-To: <87sfhuwfsc.fsf@posteo.net>
> 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..
next prev parent reply other threads:[~2022-12-05 15:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 21:09 About the new directory org-persist in .emacs.d Angelo Graziosi
2022-12-02 21:48 ` Juanma Barranquero
2022-12-02 23:26 ` Angelo Graziosi
2022-12-02 23:52 ` Juanma Barranquero
2022-12-03 7:10 ` Eli Zaretskii
2022-12-03 9:20 ` Angelo Graziosi
2022-12-03 0:01 ` Angelo Graziosi
2022-12-03 0:13 ` Stefan Monnier
2022-12-03 8:01 ` Björn Bidar
2022-12-03 9:22 ` Angelo Graziosi
2022-12-05 5:59 ` Thierry Volpiatto
2022-12-05 15:14 ` Angelo Graziosi [this message]
2022-12-03 0:06 ` Stefan Monnier
2022-12-03 2:10 ` Max Nikulin
2022-12-03 9:30 ` Angelo Graziosi
2022-12-04 3:58 ` Ihor Radchenko
2022-12-04 9:13 ` Angelo Graziosi
2022-12-04 4:20 ` Ihor Radchenko
2022-12-04 9:16 ` Angelo Graziosi
2022-12-04 9:21 ` Angelo Graziosi
2022-12-03 7:11 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=195946485.1168081.1670253296551@mail1.libero.it \
--to=angelo.g0@libero.it \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=thievol@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.