Emacs d-mode indentation, 2 spaces to 4?
Aravinda VK
mail at aravindavk.in
Thu Oct 5 08:49:30 UTC 2017
On Thursday, 5 October 2017 at 04:57:09 UTC, John Gabriele wrote:
> I'm using Emacs 25.2.2 with d-mode-20161022.717 on Debian
> Testing, and by default this mode indents by 2 spaces. Is there
> an easy way to configure it to use 4 spaces instead?
Add below snippet to your .emacs file
(add-hook 'd-mode-hook
(lambda ()
(setq c-basic-offset 4)
(setq tab-width 4)))
More information about the Digitalmars-d-learn
mailing list