Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bywater!arnor!arnor!marc From: marc@arnor.uucp Newsgroups: comp.emacs Subject: Re: Writing/Saving Buffers in Certain Mode Message-ID: Date: 1 Feb 91 16:03:51 GMT References: <7450@jhunix.HCF.JHU.EDU> Sender: news@arnor.uucp (NNTP News Poster) Organization: IBM T.J. Watson Research Center, Hawthorne, New York Lines: 18 In-Reply-To: msc_wdqn@jhunix.HCF.JHU.EDU's message of 29 Jan 91 20:21:34 GMT In article <7450@jhunix.HCF.JHU.EDU> 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. 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) -- Marc Auslander