From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: opening a buffer as read-only as default Date: Wed, 11 Nov 2009 10:49:22 +0100 Message-ID: <2EDF4F88-551B-469E-BA43-0CF2E06DA761@Web.DE> References: <26282458.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1257933198 16298 80.91.229.12 (11 Nov 2009 09:53:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 09:53:18 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: rotlas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 11 10:53:11 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N89t1-0008Sw-32 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 10:53:11 +0100 Original-Received: from localhost ([127.0.0.1]:39380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N89t0-0002KD-LQ for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 04:53:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N89qr-0000n6-5b for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 04:50:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N89qm-0000iM-Rj for Help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 04:50:56 -0500 Original-Received: from [199.232.76.173] (port=51515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N89qm-0000hx-JM for Help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 04:50:52 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:55927) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N89qm-0006Sr-4b for Help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 04:50:52 -0500 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id 1B0F2141081EA; Wed, 11 Nov 2009 10:49:25 +0100 (CET) Original-Received: from [91.35.250.43] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #314) id 1N89pM-0004fV-00; Wed, 11 Nov 2009 10:49:25 +0100 In-Reply-To: <26282458.post@talk.nabble.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/QB74RksnWFcf/ODRivbnogsiFolVHwGqZkE8V qNNggD0fPHitB5oVPB6iK5LN1p47iUvm9W4D6H7DwIGPjX3fdY ak/ZdcgofQwvAddkRtaw== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69658 Archived-At: Am 10.11.2009 um 13:19 schrieb rotlas: > Which is the simplest way to have Emacs opening all files as read- > only? That > is not only by using C-x C-r but also when selecting a file in a > directory > buffer. 'v' to just view it. You could add another hook to find-file-hook that all files are opened read-only... -- Greetings Pete Don't just do something, sit there.