From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: Customize indentation for Octave-mode Date: Sun, 23 Mar 2014 12:14:11 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1395602055 17219 80.91.229.3 (23 Mar 2014 19:14:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2014 19:14:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 23 20:14:25 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 1WRnqi-0007Ck-U4 for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Mar 2014 20:14:25 +0100 Original-Received: from localhost ([::1]:33126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRnqi-0005WE-FM for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Mar 2014 15:14:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRnqX-0005W7-Rq for help-gnu-emacs@gnu.org; Sun, 23 Mar 2014 15:14:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRnqW-0001X3-TY for help-gnu-emacs@gnu.org; Sun, 23 Mar 2014 15:14:13 -0400 Original-Received: from mail-ve0-x229.google.com ([2607:f8b0:400c:c01::229]:54430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRnqW-0001Wz-Oc for help-gnu-emacs@gnu.org; Sun, 23 Mar 2014 15:14:12 -0400 Original-Received: by mail-ve0-f169.google.com with SMTP id pa12so4786979veb.14 for ; Sun, 23 Mar 2014 12:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0qP+9BLSG4t+Dxl7m3o2cjKPB1+J3iJfECwSO0qMv1s=; b=tD7KjoszXXbagT9quTEagSUkn6Gtnk+Le9qGDxOm+pvKkH3rzzhFsU9d+mRUs/ie8/ 8HYkdarzfkl21SL0oeWilAjY5a9dl4aPVvSn18Z3h1O3ZeBY84+Yaa7jmGYIPf8QHrHX 3MQJi6aWSUHABff7vskukO7hOkZLANImh9+lYMzZ5CtYN8zEHvSoSG/1XmT0WGh7b163 ztdeLHEpp2W5RHM6fCUSPY+sTu17HBgqDRK7aUSeF749peHZ4KNYk7wzPpZmjPCrS5L0 o+FJQCGTjRBwCs62mChVuBjvulBC6XxAGGkimzsyAX/qrWrNiBOnRRgHXYYnnKgvrh98 Ol1A== X-Received: by 10.220.147.16 with SMTP id j16mr19846366vcv.14.1395602051954; Sun, 23 Mar 2014 12:14:11 -0700 (PDT) Original-Received: by 10.59.6.3 with HTTP; Sun, 23 Mar 2014 12:14:11 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c01::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:96695 Archived-At: Hi, I want to customize the indentation style so that the indentation uses space instead of tab and each indentation level is 4 more spaces. I googled around and tried to use the following codes, but it's not working--the indentation level seems to be 2 spaces instead of 4 spaces. Should I use c-basic-offset in that case? Anything I missed? Thank you. defun octave-my-setting () (setq c-basic-offset 4) (setq indent-tabs-mode nil)) (add-hook 'octave-mode-hook 'octave-my-setting)