* 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
* Re: Customize indentation for Octave-mode
2014-03-23 19:14 Customize indentation for Octave-mode Shiyuan
@ 2014-03-24 1:49 ` Leo Liu
0 siblings, 0 replies; 2+ messages in thread
From: Leo Liu @ 2014-03-24 1:49 UTC (permalink / raw)
To: help-gnu-emacs
On 2014-03-24 03:14 +0800, Shiyuan wrote:
> (setq c-basic-offset 4)
Set octave-block-offset instead.
Leo
^ 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.