all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Alexander M" <alex334599@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Help me with adding emacs features.
Date: Mon, 10 Nov 2008 15:53:55 +0100	[thread overview]
Message-ID: <f7ccd24b0811100653h6668b8f6w94a2402879a8ccc6@mail.gmail.com> (raw)
In-Reply-To: <f7ccd24b0811100645v7c430a22r9536f668612f292d@mail.gmail.com>

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




      reply	other threads:[~2008-11-10 14:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10  8:32 Help me with adding emacs features Alexander M
2008-11-10 14:45 ` Juanma Barranquero
2008-11-10 14:53   ` Juanma Barranquero [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0811100653h6668b8f6w94a2402879a8ccc6@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=alex334599@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.