From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to apply a minor mode to all buffers Date: Thu, 18 Jan 2007 14:03:31 -0800 Message-ID: References: <877ivkjb66.fsf@trick.ulm.malte.spiess> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1169157889 32067 80.91.229.12 (18 Jan 2007 22:04:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2007 22:04:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 18 23:04:42 2007 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 1H7fN5-0004F7-GH for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2007 23:04:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7fN6-0006zu-C5 for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2007 17:04:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7fMr-0006zE-CK for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 17:04:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7fMp-0006ye-QC for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 17:04:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7fMp-0006yV-Mb for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 17:04:19 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H7fMp-0003GV-3K for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 17:04:19 -0500 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l0IM3rpb020497 for ; Thu, 18 Jan 2007 16:03:53 -0600 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l0IM3qXL006726 for ; Thu, 18 Jan 2007 15:03:52 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by rcsmt250.oracle.com with ESMTP id 2377509701169157818; Thu, 18 Jan 2007 15:03:38 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <877ivkjb66.fsf@trick.ulm.malte.spiess> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-MIME-Autoconverted: from 8bit to quoted-printable by agminet01.oracle.com id l0IM3rpb020497 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:40438 Archived-At: > > Hello, I am a new and relatively inexperienced emacs user.=A0 I was > > wondering if there was an easy way to make a minor mode apply to all > > created buffers.=A0 I want to do this so that I can use the column > > marker mode in all of my buffers. > > Well, if you want to have a minor mode running all the time, putting > (whatever-mode t) > into your .emacs file should do the trick. I'm not sure if it works wit= h > all modes, but here it does with column-number-mode and > global-font-lock-mode. A minor mode "running all the time" does not mean that it is turned on in all buffers. (whatever-mode t) will turn on minor mode `whatever-mode' in the current buffer only, unless `whatever-mode' happens to be defined as = a *global* minor mode. `column-number-mode' and `global-font-lock-mode' are global minor modes, = so what you say about them is true, but I don't think it is pertinent to the question. If, by "column marker", the OP means what is provided by library `column-marker.el' (e.g. http://www.emacswiki.org/cgi-bin/wiki/column-marker.el), then it is unrelated to `column-number-mode' and it is not a mode at all - neither minor nor major. Library `column-marker.el' provides commands that create column markers i= n the current buffer. AFAIK, no automatic way is provided to get the same effect in all buffers. However, you can always use a column-marker comman= d in a mode hook, so that each buffer of that mode calls the command to cre= ate the same column marker.