tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [S] -oremove option in nrdist & setting Emacs tabs
@ 1996-10-02 13:30 Randy Rodgers
  0 siblings, 0 replies; only message in thread
From: Randy Rodgers @ 1996-10-02 13:30 UTC (permalink / raw)
  To: tru64-unix-managers

The following were my questions:

----------------------------------------------------------------------------


>Question #1

>I am using nrdist to keep some directories on 2 machines in sync.  The
>following is a sample of one of the entries in my distfile:

>LOCAL_SCRIPTS = (/usr/local/bin/*)

>scripts: ${LOCAL _SCRIPTS} -> remote_host
>	install -oremove ;

>The man page for nrdist says the following for the -oremove option:

>Remove extraneous files.  If a directory is being updated, any files that
>exist on the remote host that do not exist in the master directory are
>removed.  This is useful for maintaining truly identical copies of
>directories.

>I have found from time to time that there are files in /usr/local/bin on
>remote-host that no longer exist on the master.

>After reviewing the sample in the man page, I wonder if I need to change
>/usr/local/bin/* to /usr/local/bin.  Or is there something else wrong?

----------------------------------------------------------------------------


>Question #2

>I use Emacs as my editor of choice.  The problem is that when typing
>scripts the tabs are set to 8.  I would like to be able to set them at 4. 
>I have searched the manual and not had any success in figuring out how to
>do this.

----------------------------------------------------------------------------


I did not receive any repsonses to my first question.

I received 2 responses to the 2nd question.

Thanks to the following:

Edward C Bailey bailey@niehs.nih.gov
Sigismondo Boschi net1701@comune.bologna.it

I ended up putting the following in an ~/.emacs file.

----------------------------------------------------------------------------


(setq-default indent-tabs-mode nil)
(setq-default tab-stop-list
	'(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96
100 104 108 112 116 120 124 128 132))
(setq-default tab-width 4)

----------------------------------------------------------------------------


The 1st line says to use spaces instead of tab characters.
The 2nd line sets the tab stops.
The 3rd line sets the tab width to 4.

I was not able to get the tab of 4 to work without the 1st line.  I would
have liked to because I would rather have tab characters.  For now I am
happy to get 4 characters tabs.

[=================================
[ Randy Rodgers
[ rrodgers@fwi.com
[ System Administrator
[ Allen County/City of Fort Wayne
[ Information Systems
[ (219)449-7660
[=================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-10-02 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-02 13:30 [S] -oremove option in nrdist & setting Emacs tabs Randy Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox