In fact putting the following lines in .emacs

;; Highlight current line
(require 'highline)
(highline-mode-on)

and the following lines in jde-mode-hook

  (make-variable-buffer-local 'highline-line)
  (setq highline-line (cons fill-column 240))

did the trick.

-sandip

> -----Original Message-----
> From: Sandip Chitale 
> Sent: Friday, July 27, 2001 4:49 PM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: limiting line length
> 
> 
> > >Or maybe just vertical line down the screen at char 80 to 
> > >let you know when a line is to long?
> > 
> > Does anyone know of a way to do this?
> 
> The highline.el has a customizable variable called 
> highline-line. Which seems to allow which part of the line
> to highlight. I guess it could be set to 'fill-column'
> value an you have what you want.....
> 
> e.g. set highline-line to (fill-column . 240)
> 
> highline-line's Documentation:
> *Specify which part of line should be highlighted.
> 
> Valid values are:
> 
>    t                  mark up to end of line.
> 
>    nil                        mark up to window border.  On 
> XEmacs, it behaves as t.
>                       NOTE: Let me know, if you find a way to 
> mark up to
>                             window border on XEmacs.
> 
>    INTEGER            mark up from beginning of line to 
> column INTEGER or to
>                       end of line if INTEGER exceeds line 
> length.  If INTEGER
>                       is negative, the region marked starts 
> from end of line
>                       instead of beginning of line.
> 
>    (LOWER . UPPER)    mark up the region from column LOWER to 
> column UPPER or
>                       to end of line if UPPER exceeds line 
> length.  Nothing
>                       happens if LOWER exceeds line length.
>                       It must: 0 <= LOWER < UPPER.
> 
>    (point . INTEGER)  mark up the region from column
>                       (- (current-column) INTEGER) to column
>                       (+ (current-column) INTEGER).  It never 
> goes beyond
>                       beginning or end of line.
>                       It must: INTEGER > 0.
> 
> Any other value is treated as t.
> 
> Here is the info on highline.el - 
> 
> ;;; highline.el --- Minor mode to highlight current line in buffer.
> 
> ;; Copyright (C) 2000,2001 Vinicius Jose Latorre
> 
> ;; Author:    Vinicius Jose Latorre <[EMAIL PROTECTED]>
> ;; Maintainer:        Vinicius Jose Latorre <[EMAIL PROTECTED]>
> ;; Keywords:  faces, frames, editing
> ;; Time-stamp:        <2001/02/04 17:35:28 Vinicius>
> ;; Version:   3.1
> ;; X-URL:     http://www.cpqd.com.br/~vinicius/emacs/
> 
> 
> -sandip
> 

Reply via email to