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

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

Re: Emacs like line editing during perl input.


From: Bijan Soleymani
Subject: Re: Emacs like line editing during perl input.
Date: 31 Dec 2002 00:45:06 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Harry Putnam <hgp@sbcglobal.net> writes:

> Bijan Soleymani <bijan@psq.com> writes:
> 
> >> emacs vICQ.pm
> >> M-x occur [Rr]ead[Ll]ine <RET>
> >>        <no matches>
> >> 
> >> M-x occur [Tt]erm <RET>
> >>        <no matches>
> > I've installed the Debian package I'm looking at the file /usr/bin/vicq
> > and line 19 is:
> > use Term::Readline;
> > and m-x occur gives 23 matches.
> 
> Oh.. thanks.  I was looking in the *.pm file.
> Now I see them but still no closer to understanding how to use it to
> make and input line editable.
> 
> Apparently this is just going to remain out of my grasp for some time
> to come.

I just checked and the Debian package for libterm-readline comes with
some examples. This is in:
/usr/share/doc/libterm-readline-gnu-perl/examples

You might also want to check the Readline manual itself as it seems as
the readline capability of perl simply calls the functions in the
Readline library (which is written in C).

If you do check out the Readline manual be careful there are two
manuals. One is a user manual that comes with the binary package. The
one you want is the other manual that comes with the dev package.

Bijan
>From pgarland@u.washington.edu Tue Dec 31 00:56:57 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
        id 18TFOH-0006Jk-00
        for help-gnu-emacs@gnu.org; Tue, 31 Dec 2002 00:56:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
        id 18TFOC-0006Ar-00
        for help-gnu-emacs@gnu.org; Tue, 31 Dec 2002 00:56:34 -0500
Received: from mxout1.cac.washington.edu ([140.142.32.134])
        by monty-python.gnu.org with esmtp (Exim 4.10.13)
        id 18TFO4-00062T-00
        for help-gnu-emacs@gnu.org; Tue, 31 Dec 2002 00:56:24 -0500
Received: from mailscan-out1.cac.washington.edu
        (mailscan-out1.cac.washington.edu [140.142.32.138])
        SMTP id gBV5uM3d013721
        for <help-gnu-emacs@gnu.org>; Mon, 30 Dec 2002 21:56:22 -0800
Received: FROM hymn16.u.washington.edu BY mailscan-out1.cac.washington.edu ;
        Mon Dec 30 21:56:18 2002 -0800
Received: from localhost (localhost [127.0.0.1])id gBV5uI0F031024;
        Mon, 30 Dec 2002 21:56:18 -0800
Date: Mon, 30 Dec 2002 21:56:18 -0800 (PST)
From: Phillip Garland <pgarland@u.washington.edu>
To: unni krishnan <gnu_talk@yahoo.co.in>
In-Reply-To: <20021231051903.38535.qmail@web8206.mail.in.yahoo.com>
Message-ID: <Pine.LNX.4.43.0212302156180.26017@hymn16.u.washington.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
cc: help-gnu-emacs@gnu.org
Subject: Re: syntax coloring!!!
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 31 Dec 2002 05:56:58 -0000

To turn on syntax coloring you do

M-x font-lock-mode

or select "Syntax Highlighting" from the "Options" menu.

If you want syntax coloring to always be one put the following line in your 
.emacs file:

(global-font-lock-mode t)

for more information see the "Font Lock" node in the Emacs manual.

~Phillip


On Tue, 31 Dec 2002, unni krishnan wrote:

> 
> hello,
> 
>          i am a new user (student) of emacs.how can i
> do syntax coloring in emacs?
> 
> 
> ________________________________________________________________________
> Missed your favourite TV serial last night? Try the new, Yahoo! TV.
>        visit http://in.tv.yahoo.com
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 





reply via email to

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