* Customize indentation for Octave-mode
@ 2014-03-23 19:14 Shiyuan
2014-03-24 1:49 ` Leo Liu
0 siblings, 1 reply; 2+ messages in thread
From: Shiyuan @ 2014-03-23 19:14 UTC (permalink / raw)
To: help-gnu-emacs
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-24 1:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-23 19:14 Customize indentation for Octave-mode Shiyuan
2014-03-24 1:49 ` Leo Liu
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).