I use M-x align-regexp
in emacs to prettify my Perl code, but by default it is using tabs instead of spaces, which is something one should not do according to Perl critic.
Is there a way to change the behaviour of align-regexp
so that it fills in with the right amount of spaces instead of tabs?
(setq indent-tabs-mode nil)
. – Gasify