From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: How to apply a minor mode to all buffers Date: Fri, 19 Jan 2007 18:06:36 +0100 Message-ID: References: <877ivkjb66.fsf@trick.ulm.malte.spiess> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169226709 15171 80.91.229.12 (19 Jan 2007 17:11:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 17:11:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 18:11:47 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 1H7xHD-0004CB-RY for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 18:11:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7xHD-0000xk-8g for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 12:11:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7xCP-0002Fq-Da for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 12:06:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7xCJ-00028R-MH for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 12:06:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7xCI-00027V-Uj for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 12:06:39 -0500 Original-Received: from [66.249.92.173] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7xCI-0002Uj-6c for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 12:06:38 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so560882ugf for ; Fri, 19 Jan 2007 09:06:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d0qgh9cCLRObrgfdtLrxyrH2hTv/MThcmXHEyzCVtk6gB8Ez6CIuRLKTYwo5BRSaf8ZMmFPSpqWBmC80tQ34d/vjjfx0+Ohckp6vRlFvCWmfQc2pTu5n7mSpMH3cY4nBJUVTq4qliPqYnDjAQ0es+o+C3cTCbVkxPhvPsS6JDoc= Original-Received: by 10.67.19.20 with SMTP id w20mr3246974ugi.1169226396770; Fri, 19 Jan 2007 09:06:36 -0800 (PST) Original-Received: by 10.67.105.7 with HTTP; Fri, 19 Jan 2007 09:06:36 -0800 (PST) Original-To: "James Aguilar" In-Reply-To: Content-Disposition: inline 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:40466 Archived-At: On 1/19/07, James Aguilar wrote: > The purpose is allowing my window to be wider than eighty characters but > knowing where the eighty character limit is. By using column-marker mode (http://www.emacswiki.org/cgi-bin/wiki/column-marker.el) you can just do: (require 'column-marker) (defface column-marker-policy-face ...) # whatever you find nice (defvar column-marker-policy-face 'column-marker-policy-face) (column-marker-create column-marker-policy column-marker-policy-face) and then in programming modes' hooks, add: (column-marker-policy 80) [I really use (column-marker-policy (setq fill-column 80)).] It could be even easier by just using column-marker-{1,2,3}, but I think these are best left for interactive use. /L/e/k/t/u