unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thievol@posteo.net>
To: angelo.g0@libero.it
Cc: emacs-devel@gnu.org,lekktu@gmail.com
Subject: Re: About the new directory org-persist in .emacs.d
Date: Mon, 05 Dec 2022 05:59:16 +0000	[thread overview]
Message-ID: <87sfhuwfsc.fsf@posteo.net> (raw)
In-Reply-To: <2018063536.265539.1670023606601@mail1.libero.it>

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]


> 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)))

-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

  parent reply	other threads:[~2022-12-05  5:59 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 [this message]
2022-12-05 15:14       ` Angelo Graziosi
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfhuwfsc.fsf@posteo.net \
    --to=thievol@posteo.net \
    --cc=angelo.g0@libero.it \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).