all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: auto-save directory?
Date: Sat, 19 Mar 2022 07:10:35 +0100	[thread overview]
Message-ID: <YjVz28GPJJ10NoyH@tuxteam.de> (raw)
In-Reply-To: <e2aab671ad0329169ecc077c8c6992617a3cc6bb.camel@adminart.net>

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

On Sat, Mar 19, 2022 at 05:06:55AM +0100, hw wrote:
> 
> Hi,
> 
> I'm wondering if there is a way to have emacs put all auto-save files
> into a configurable directory.  We can set `tramp-auto-save-directory`,
> but there doesn't seem an equivalent option for files that are not
> remote.  I couldn't find one in either the documentation, nor the source.
> 
> I'd find it nicer to have all auto-save files in one place instead of
> all over the place.  Is there such an option, and if there isn't, would
> that be worth making a feature request?

You can modify the variable `auto-save-file-name-transforms' to replace
the leading part of the path to a value which suits you. Besides, you
might want to do something about the further slashes.

By default, Emacs comes with one transform defined for remote files
(whose auto-saved twins end up locally). Perhaps you can reuse this,
if it suits you.

Cheers
-- 
t

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

      parent reply	other threads:[~2022-03-19  6:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-19  4:06 auto-save directory? hw
2022-03-19  5:30 ` Jean Louis
2022-03-20  9:27   ` hw
2022-03-19  6:10 ` tomas [this message]

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=YjVz28GPJJ10NoyH@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    /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.