help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to apply a minor mode to all buffers


From: Juanma Barranquero
Subject: Re: How to apply a minor mode to all buffers
Date: Fri, 19 Jan 2007 18:06:36 +0100

On 1/19/07, James Aguilar <aguilar.james@gmail.com> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]