help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving files by subject in emacs


From: Emanuel Berg
Subject: Re: Saving files by subject in emacs
Date: Wed, 27 Feb 2019 22:49:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

M. P. wrote:

> I am on a Mac and want to save emacs files to
> a specific folders by subject. How do
> I do this?

You just create the directory (folder) the way
you normally do [1] and when you later save
a buffer's contents (basically what you see on
the screen) to a file, type the path to the
desired dir as the file's destination.

So if you create a dir ~/girls/kate-moss/ and
have a file katie-1.txt, in that buffer, do
`C-x C-w' (`write-file') if the file at that
point is in another dir, and specify the
new, correct path.

Note that the old file is still around in its
original place, and this can be the cause of
some confusion later on when you get tired and
don't realize what file you are editing. So you
can also choose to *move* the file, for example
using Dired, an Emacs mode for all interactions
with the filesystem (= your files and dirs).
Or just remove the original file, of course,
which also Dired can do for you.

If you start a brand new file, do `C-x C-f'
(`find-file') and place it in the correct dir
to begin with, and give it a proper
"subject" name.


[1] This can also be done from Emacs BTW which
    you will prefer soon enough, God willing :)

--
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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