Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!gatech!udel!sbcs!eeserv1.ic.sunysb.edu!cbrown From: cbrown@eeserv1.ic.sunysb.edu (Charles T Brown) Newsgroups: comp.emacs Subject: Re: Writing/Saving Buffers in Certain Mode Keywords: gnu-emacs, file mode Message-ID: <1991Feb1.181949.11246@sbcs.sunysb.edu> Date: 1 Feb 91 18:19:49 GMT References: <7450@jhunix.HCF.JHU.EDU> Sender: usenet@sbcs.sunysb.edu (Usenet poster) Organization: State University of New York at Stony Brook Lines: 31 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. > >Can anyone help? > >Please send replies to dan@jesse.mts.jhu.edu > >Thanks. > >Dan Naiman (dan@jesse.mts.jhu.edu) >Department of Mathematical Sciences >Johns Hopkins University Try 'man umask' and see what that gets you... (I'm on a SYSV system acting like a BSD4.3 system sometimes, so I'm never sure what is just SYSV or just BSD... :-) --Titus -- "Never put off until tomorrow, that which can be done the day after tomorrow" -- C. Titus Brown, anonymous student, brown@max.physics.sunysb.edu UNIX is good, you say? Which UNIX, say I!