all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Common .emacs and other files
@ 2003-09-05 13:16 Harter, Douglas
  0 siblings, 0 replies; 2+ messages in thread
From: Harter, Douglas @ 2003-09-05 13:16 UTC (permalink / raw)


I have 2 usernames which I use on our system and do a lot of work in emacs
on both usernames. I would like to have the files on both usernames which I
use, like the .profile, .emacs, and some *-cust.lse files used in emacs
else-mode, be the same on both usernames.

What I would like to do is make one username the location for the files and
just set up symbolic links to those files from the other username.

I found that if I put the *-cust.lse files under the .emacs.d directory,
they are still available when I use emacs, so I wanted to link the .emacs.d
directory also.

Has anyone tried something like this and will it cause any problems with
emacs (or anything else in Unix)? I'm not going to do anything until I find
out.



.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Common .emacs and other files
       [not found] <mailman.222.1062768031.18171.help-gnu-emacs@gnu.org>
@ 2003-09-05 15:17 ` marcuirl
  0 siblings, 0 replies; 2+ messages in thread
From: marcuirl @ 2003-09-05 15:17 UTC (permalink / raw)


"Harter, Douglas" <dharter@state.pa.us> writes:

> I have 2 usernames which I use on our system and do a lot of work in emacs
> on both usernames. I would like to have the files on both usernames which I
> use, like the .profile, .emacs, and some *-cust.lse files used in emacs
> else-mode, be the same on both usernames.
>
> What I would like to do is make one username the location for the files and
> just set up symbolic links to those files from the other username.
>
> I found that if I put the *-cust.lse files under the .emacs.d directory,
> they are still available when I use emacs, so I wanted to link the .emacs.d
> directory also.
>
> Has anyone tried something like this and will it cause any problems with
> emacs (or anything else in Unix)? I'm not going to do anything until I find
> out.

Sure, linking directories is just as valid as linking files. The only
thing you might notice is the linked username might be a little slower
to start!

Backup the .emacs.d before removing it and then create the link

ln -s /home/usernameA/.emacs.d/ .

                               ^^
This space and dot is intentional!

Make sure that the home directory of the username you are linking too
is readable AND executable. Same for the .emacs.d directory.

to achieve this:

login: usernameA

cd /home

chmod 755 usernameA (the one you want to link too!)

cd usernameA

chmod 755 .emacs.d


Now everyone on your system can see and enter these directories. They
may or may not be able to read and write to the files that depends on
the permissions you then set for the files!

HTH, marcu 
-- 
Unless otherwise noted, the statements herein reflect my 
personal opinions and not those of any organisation with 
which I may be affiliated.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-05 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-05 13:16 Common .emacs and other files Harter, Douglas
     [not found] <mailman.222.1062768031.18171.help-gnu-emacs@gnu.org>
2003-09-05 15:17 ` marcuirl

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.