From: "Luis O. Silva" <silva@paloma.spbu.ru>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How i can backup files in one particular directory?
Date: Tue, 16 Jul 2002 13:51:03 +0400 [thread overview]
Message-ID: <15667.60551.746478.54111@localhost.localdomain> (raw)
In-Reply-To: <20020716041723.89292.qmail@web14808.mail.yahoo.com>
Hi, Shailesh
On Mon, 15 Jul 2002 21:17:23 -0700 (PDT), Shailesh Joshi writes:
Shailesh> ... How i can store backup files (which are
Shailesh> created by emacs) in one particular directory?
Shailesh> If possible please send me .emacs code too.
Dealing with emacs backup files is explained in the subsection
*Backup* within the *Saving files* section of the Emacs
Manual. Here is a quotation:
"you can customize the variable `backup-directory-alist' to
specify that files matching certain patterns should be
backed up in specific directories".
"A typical use is to add an element `("." . DIR)' to make
all backups in the directory with absolute name DIR; Emacs
modifies the backup file names to avoid clashes between
files with the same names originating in different
directories. Alternatively, adding, say, `("." . ".~")'
would make backups in the invisible subdirectory `.~' of
the original file's directory. Emacs creates the
directory, if necessary, to make the backup."
The following is a snippet of my .emacs. You must read the
*Backup* subsection in order to adapt it for you.
;; ------------------ Setting the handling of backups -------------------
(setq backup-directory-alist
'((".+\\.tex$" . "~/backup/tex")
("/[^\\./]+\\..+$" . "~/backup/code")
("/[^\\.]+$" . "~/backup")
("/\\.." . "~/backup/dotfiles")))
;; backup variables
(setq
version-control t
kept-new-versions 6
kept-old-versions 6
)
;; ---------------------- End handling of backups------------------------
Regards,
luis
--
Luis Octavio Silva P.
St. Petersburg State University.
66/3 Botanicheskaya St., Apt.119/2
Stary Peterhof
St. Petersburg, Russia.
prev parent reply other threads:[~2002-07-16 9:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-16 4:17 How i can backup files in one particular directory? Shailesh Joshi
2002-07-16 9:51 ` Luis O. Silva [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
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=15667.60551.746478.54111@localhost.localdomain \
--to=silva@paloma.spbu.ru \
--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.
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).