From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zei Hoffmann Newsgroups: gmane.emacs.help Subject: Start emacs with font-lock on and other minor doubts Date: Tue, 10 Jun 2008 20:40:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213232730 30283 80.91.229.12 (12 Jun 2008 01:05:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2008 01:05:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 12 03:06:07 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 1K6bFt-000292-PE for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2008 03:05:49 +0200 Original-Received: from localhost ([127.0.0.1]:34918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6bF6-0002Lg-C4 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2008 21:04:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m36g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 189.7.84.122 Original-X-Trace: posting.google.com 1213155637 25919 127.0.0.1 (11 Jun 2008 03:40:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 11 Jun 2008 03:40:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m36g2000hse.googlegroups.com; posting-host=189.7.84.122; posting-account=JlJUGQoAAAC5qnipMqGkJ30sct9czRKL User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.50 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159358 X-Mailman-Approved-At: Wed, 11 Jun 2008 21:03:55 -0400 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:54748 Archived-At: I tried the following in custom.el: (global-font-lock-mode 1) and (add-hook 'c-mode-hook 'turn-on-font-lock) and those two together and when I open a C source code it still do not put font-lock minor mode on. I'm still learning emacs and I have zero knowledge of Lisp. Why emacs is not putting font-lock on? my custom.el file: (custom-set-variables '(compilation-window-height 10) '(compile-command "c:\\mingw\\bin\\gcc ")) (custom-set-faces) (define-key global-map [f11] 'bookmark-jump) (define-key global-map [f12] 'bookmark-set) (define-key global-map [f9] 'compile) (define-key global-map [f10] 'recompile) (global-font-lock-mode 1) (add-hook 'c-mode-hook 'turn-on-font-lock) Using XEmacs 24.4.21 in Windows XP. How can I change the default behavior of identing lines in c-mode? The default works like this for (int i=0; i<10; i++) { a+=i; <<== if I press enter here I will go here and only when I type the ; the line will be idented. what I wanted is: for (int i=0; i<10; i++) { a+=i; <<== if I press enter here I will go here And when I type ; nothing happens; Also, I had to manually create UserNameFolder\.xemacs\ folder in order for xemacs to save my custom.el. Is that normal? Isn't the configuration file supose to be named .emacs.el and be in My Documents folder? Any good tutorials to recommend for me? I want to use emacs to program C mostly and it's hard to find a newbie tutorial that is not just a bunch of commands like C-x C-f to open file. Sorry if I posted this on the wrong mailing list, if I should had posted on a specfic XEmacs mailing list or another one please give me the url for those.