From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: seberino@spawar.navy.mil (Christian Seberino) Newsgroups: gmane.emacs.help Subject: Please why ORDER of .emacs lines here matters..... Date: 31 Jul 2003 13:14:41 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1059683023 23249 80.91.224.249 (31 Jul 2003 20:23:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2003 20:23:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 22:23:40 2003 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 19iJsQ-0005fk-00 for ; Thu, 31 Jul 2003 22:18:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19iJqZ-0008Pe-K8 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2003 16:16:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 198.253.72.211 Original-X-Trace: posting.google.com 1059682482 9559 127.0.0.1 (31 Jul 2003 20:14:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 31 Jul 2003 20:14:42 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:115598 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:11516 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11516 Notice the py-indent-offset line (2nd one) below. If I move this line further down then I don't get 8 space idents anymore. The order matters!!!! But why??? (defun cs-python-mode() (setq-default py-indent-offset 8 ) (python-mode) (turn-on-font-lock) (setq-default auto-fill-function 'do-auto-fill) (setq-default py-python-command "python2.2" ) (setq-default py-continuation-offset 8 ) (setq-default py-smart-indentation nil ) (setq-default py-block-comment-prefix "#" )) P.S. This code gets run when I open a file with ".py" extension. This puts me into python-mode (along with my tweaks) for Python source code.