From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Help me with adding emacs features. Date: Mon, 10 Nov 2008 15:53:55 +0100 Message-ID: References: <4917F19C.3030603@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226328881 20902 80.91.229.12 (10 Nov 2008 14:54:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2008 14:54:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Alexander M" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 10 15:55:39 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KzYAu-0007gC-7Q for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2008 15:55:32 +0100 Original-Received: from localhost ([127.0.0.1]:38071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzY9m-0007RP-G7 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2008 09:54:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzY9O-0007PN-8s for help-gnu-emacs@gnu.org; Mon, 10 Nov 2008 09:53:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzY9M-0007O7-RY for help-gnu-emacs@gnu.org; Mon, 10 Nov 2008 09:53:57 -0500 Original-Received: from [199.232.76.173] (port=48239 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzY9M-0007Nx-La for help-gnu-emacs@gnu.org; Mon, 10 Nov 2008 09:53:56 -0500 Original-Received: from an-out-0708.google.com ([209.85.132.240]:1386) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzY9M-0005LP-J2 for help-gnu-emacs@gnu.org; Mon, 10 Nov 2008 09:53:56 -0500 Original-Received: by an-out-0708.google.com with SMTP id c38so343736ana.21 for ; Mon, 10 Nov 2008 06:53:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Vbpbm37EPprH4C8H/4y0CiJs4eF33ljE1e+qA6M5MAU=; b=DwgWyI1+3xai5SPjIorkRvDsISZDh8ZQifegbk4YC92QHHeICgr3lsQKxQxXo3eHYb 3mGbLVBSjX6eYA+ypfnq8rumby/fa8K6u79ByFG2guOjZLq2Lslv78OrJcmjVMktSP7z +xV9eQj8ZszH7hQGNMRpVLgdOCDSkM6xKwJio= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=PhBfMv3dBWk020W/pFpEt2/3iVJGps4NmRwjjw3FDGb78xxTRj58V+yG07MNQnxurj R1uMPmTS0z4OQm/7cRz/Xm2y1UnAvzeMEG7gdxyh8DkBI3qXjL5GbeQJvQdWHIHvPn22 f1kBc4pY5au6wRekC5TKHbrG9NnlAXTGvyOfA= Original-Received: by 10.100.142.4 with SMTP id p4mr1946848and.23.1226328835739; Mon, 10 Nov 2008 06:53:55 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Mon, 10 Nov 2008 06:53:55 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59600 Archived-At: On Mon, Nov 10, 2008 at 15:45, Juanma Barranquero 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