From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: menus; syntax highlighting does not seem to work (SUSE 10.0 Linux) Date: Mon, 24 Apr 2006 09:56:22 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <874q0jyhg9.fsf@tiger.rapttech.com.au> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145839240 21423 80.91.229.2 (24 Apr 2006 00:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Apr 2006 00:40:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 24 02:40:38 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FXp7w-0006Fv-TJ for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Apr 2006 02:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXp7w-0000Xm-RP for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Apr 2006 20:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!border1.nntp.ams.giganews.com!nntp.giganews.com!sn-ams-06!sn-xt-ams-08!sn-post-ams-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Co6gV9W4JauIUxB6+L7fGgRA30c= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 56 Original-Xref: shelby.stanford.edu gnu.emacs.help:138997 Original-To: help-gnu-emacs@gnu.org 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:34617 Archived-At: Peter Dyballa writes: > Am 23.04.2006 um 14:02 schrieb Karl Sommer & Meryl Hale: > >> However, I soon noticed that the menus cannot be invoked with the >> mouse > > Is your Emacs running as X client or without windows inside a > terminal emulation? Then it's normal. > Not sure what you mean here. However, to clarify, the mouse and menus don't work if your running under a console or within an xterm. However, if your running emacs with X windows support, the menus should work with the mouse. >> my tex files do not show any syntax highlighting after invoking M-x >> font-lock-mode except for some characters that are changed to bold >> typeface. >> There is however no colour. > > You don't switch on or off font-lock-mode interactively! Try > something like this (XEmacs compliant): > > (cond ((fboundp 'global-font-lock-mode) > ;; Turn on font-lock in all modes that support it > (global-font-lock-mode 1) > ; (setq font-lock-multiline 'undecided') > (setq jit-lock-stealth-verbose t) > (setq jit-lock-mode t) > ; (setq jit-lock-stealth-load 80) > ;; Maximum colors > (setq font-lock-maximum-decoration t))) > ; (setq font-lock-maximum-decoration '((tex-mode . 2) (latex-mode > . 2) (t . t))) > Its quite OK to switch font-lock mode on and off interactively, thats why it has a menu option. The easiest way to enable font-lock is to select it from the options menu and then select save options from that menu. this will setup a 'customize' entry in your .emacs. Are you running AucTex? If so, see the info manual on AucTex regarding font locking. Recent versions of AucTex changed how font locking is handled and its quite possible you may have a conflict between old AucTex configuration entries and the new AucTex setup. As an experiment and to eliminate any problems in your .emacs, try running emacs with the -q switch and see if things work correctly. If they do, then the problem is in your .emacs Tim -- tcross (at) rapttech dot com dot au