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

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

Re: Vi-like end of buffer in emacs?


From: wlcna
Subject: Re: Vi-like end of buffer in emacs?
Date: Sun, 04 Jan 2009 06:55:12 GMT

"Kevin Rodgers" <kevin.d.rodgers@gmail.com> wrote...
All you need is: (setq-default indicate-empty-lines t)
For my customization, I prefer the Emacs 21 empty line glyphs:
(when (fboundp 'define-fringe-bitmap)
(define-fringe-bitmap 'empty-line [0 0 #x3c #x3c #x3c #x3c 0 0]) ; Emacs 21
  )


NICER THAN WHAT I HAD!  THANKS! It's in my init file.

And less obtrusive color:

(when (display-color-p)
  (let ((bg-mode (frame-parameter (selected-frame) 'background-mode)))
    (cond ((eq bg-mode 'light)
   (set-face-foreground 'fringe "grey60"))
  ((eq bg-mode 'dark)
   (set-face-foreground 'fringe "grey40")))))

Looks better, I put that in there too. Nicer. I just wish now it didn't show one two many lines of these marks, and as mentioned, still doesn't have the vim bg color slight adjustment (in gui vim) either, but hey, it's getting there! Thanks!


reply via email to

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