From: Shiyuan <gshy2014@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Customize indentation for Octave-mode
Date: Sun, 23 Mar 2014 12:14:11 -0700 [thread overview]
Message-ID: <CAOm4EMt37B5SPYRozMDGW77ocLE3tf1YrHRGEgBVaR-YUuHqYQ@mail.gmail.com> (raw)
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)
next reply other threads:[~2014-03-23 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-23 19:14 Shiyuan [this message]
2014-03-24 1:49 ` Customize indentation for Octave-mode Leo Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOm4EMt37B5SPYRozMDGW77ocLE3tf1YrHRGEgBVaR-YUuHqYQ@mail.gmail.com \
--to=gshy2014@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).