From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Is there a way to make emacs display different functions in different colors? Date: Thu, 18 Sep 2014 09:23:58 +0200 Message-ID: <874mw59ysx.fsf@thinkpad-t440p.tsdh.org> References: <21529.31577.367248.530464@mail.eng.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411025593 23695 80.91.229.3 (18 Sep 2014 07:33:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2014 07:33:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, yoyobeermam@gmail.com To: "Gian Uberto Lauri" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 18 09:33:07 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XUWDB-0004DE-2h for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 09:33:05 +0200 Original-Received: from localhost ([::1]:48927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUWDA-0000o0-MI for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 03:33:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUWCr-0000gV-Pd for help-gnu-emacs@gnu.org; Thu, 18 Sep 2014 03:32:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUWCm-00063F-Av for help-gnu-emacs@gnu.org; Thu, 18 Sep 2014 03:32:45 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUWCm-00062m-8K for help-gnu-emacs@gnu.org; Thu, 18 Sep 2014 03:32:40 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by gateway2.nyi.internal (Postfix) with ESMTP id 3139E2057F for ; Thu, 18 Sep 2014 03:24:05 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 18 Sep 2014 03:24:05 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=GgdeNQU9EzvbRvLOozeyvnz665E=; b=rvKAr7u2ocD6aG2QCTUzKEFCeL1Q llpKZqiuBtruBzqI4zFhGX91tTjxd6mfIUP2GZOBSgn0Kd1vYDs26BwSB1//0C4j frxPAmv243Epsi4vpJct2lYHiVSl4fv4LCXy5DlYUMK5rl0z4l+wrkuiggHeuEYm 6YdQlSvwksABJU8= X-Sasl-enc: T2txtx9+omVTqcuRH/IWMsqsxu2GMDczuvYREsqtsDhG 1411025044 Original-Received: from thinkpad-t440p.tsdh.org (unknown [2.160.194.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 13C3BC00916; Thu, 18 Sep 2014 03:24:03 -0400 (EDT) In-Reply-To: <21529.31577.367248.530464@mail.eng.it> (Gian Uberto Lauri's message of "Wed, 17 Sep 2014 14:15:21 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99996 Archived-At: "Gian Uberto Lauri" writes: Hi! > > For example, in Monodevelop, when you make a comment in your script like this > > > > //This text is only a filler > > > > it will turn it green. > > Try putting > > (global-font-lock-mode t) > (setq font-lock-maximum-decoration t) > > in the .emacs file in your home directory (create a new .emacs file if > it does not exist). I don't think he uses an Emacs version that's so old not to have font-lock enabled by default. But stock emacs doesn't come with a C# mode, and it seems he programs in that (because he compares with Monodevelop). So he should install csharp-mode [1] which is also installable using the emacs package manager from either the marmalade or MELPA repositories. Bye, Tassilo [1] https://code.google.com/p/csharpmode/