[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help me with adding emacs features.
From: |
Juanma Barranquero |
Subject: |
Re: Help me with adding emacs features. |
Date: |
Mon, 10 Nov 2008 15:53:55 +0100 |
On Mon, Nov 10, 2008 at 15:45, Juanma Barranquero <lekktu@gmail.com> wrote:
> You can use linum.el to add line numbers, and by customizing
> linum-before-numbering-hook and linum-format you can make it to show
> certain lines in a different way.
Just adding this to your .emacs is enough:
(defvar my-page-length 60)
(setq linum-format (lambda (n)
(if (zerop (mod n my-page-length))
"^L"
" ")))
(global-linum-mode 1)
or you can leave the last line out and use M-x linum-mode in the
buffers you're interested.
Juanma