From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter.Weiss@Germany.Sun.com (Peter Weiss, Sun Microsystems, Germany) Newsgroups: gmane.emacs.help Subject: Re: Two questions Date: Tue, 10 Sep 2002 09:42:06 +0200 Organization: Sun Microsystems GmbH, Germany Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031645775 9031 127.0.0.1 (10 Sep 2002 08:16:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 08:16:15 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ogBx-0002LP-00 for ; Tue, 10 Sep 2002 10:16:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ogBt-00077V-00; Tue, 10 Sep 2002 04:16:09 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!carbon.eu.sun.com!new-usenet.uk.sun.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: winona.germany.sun.com Original-X-Trace: new-usenet.uk.sun.com 1031643729 23114 129.157.133.118 (10 Sep 2002 07:42:09 GMT) Original-X-Complaints-To: usenet@new-usenet.uk.sun.com Original-NNTP-Posting-Date: 10 Sep 2002 07:42:09 GMT User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) Cancel-Lock: sha1:iWA/H3XQ5ERltufkR5FODB/qSYY= Original-Xref: nntp.stanford.edu comp.emacs:74330 gnu.emacs.help:104655 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1211 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1211 >>>>> On Mon, 09 Sep 2002 19:33:20 +0200 (CEST), "Frank Winkler @home" said: Frank> On Mon, 09 Sep 2002 10:16:57 +0200, Peter Weiss, Sun Microsystems, Frank> Germany wrote: Frank> [...] Frank> At the moment, I'm talking about the default modes (C, Perl, etc.) and Frank> my attempts to customize them. But I didn't find the code which Frank> recognizes the commands and sets the colors; is this hard-coded? Nope, like allways in Emacs: You can modify nearly everything to fit your needs. Check the info docs for "font-lock". Font-lock-mode is activated for example globally with (global-font-lock-mode 1) Frank> [...] Frank> Y >> ESC q runs the command fill-paragraph which is an interactive >> compiled Lisp function in `textmodes/fill'. >> (fill-paragraph ARG) Frank> Cool stuff! :) Didn't know that - but is there a way to do this Frank> dynamically, without explicitly triggering a command? The dumbest mail Frank> editor can do that so I'm sure emacs can ... Take a look at the documentation of auto-fill-mode. This is somehow automatic like that what M-q does. Take a look at "C-x ." (set-fill-prefix) and "C-x f" (set-fill-column). Frank> [...] Hth -- Peter -- Consultant der CLASS AG http://www.class.de Professional Services mobil +49 (0) 172/837 91 25 mailto:Peter.Weiss@class.de