Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!kyle From: kyle@uunet.UU.NET (Kyle Jones) Newsgroups: comp.emacs Subject: Re: Writing/Saving Buffers in Certain Mode Message-ID: <120843@uunet.UU.NET> Date: 1 Feb 91 21:00:05 GMT References: <7450@jhunix.HCF.JHU.EDU> Organization: UUNET Communications Services, Falls Church, VA Lines: 17 msc_wdqn@jhunix.HCF.JHU.EDU (Daniel Q Naiman) writes: > I am using GNU-EMACS and want to customize it > so that when I save/write to a file, the resulting > file is readable only by me. From reading the manual > it is my impression that the solution to this > problem has something to do with the hook > variable "write-file-hooks" but beyond that > I do not know how to proceed. marc@arnor.uucp writes: > A brute force solution is to start emacs with a umask of 77, in which > case all files it creates will have no group or other permissions. > In ksh - (umask 77; emacs) In my opinion this is the best solution. Using write-file-hooks won't completely work, as Emacs creates some files without running those hooks. E.g. auto save files.