Closed bsferrazza closed 1 year ago
sorry, this did the trick. Thought there would be a big hammer to make it a simple, consistent indenting scheme.
(add-hook 'verilog-mode-hook (lambda () (setq indent-tabs-mode nil) (setq tab-width 2) (setq verilog-indent-level 2) (setq verilog-indent-level-module 2) (setq verilog-indent-level-declaration 2) (setq verilog-indent-level-directive 0) (setq verilog-indent-lists nil) (setq verilog-indent-begin-after-if nil) (setq verilog-auto-lineup nil) (setq verilog-auto-newline nil)))
I'm using the latest verilog-mode from github (as of today) and emacs 28.2.
yet lines directly within a module are indented 3 spaces.
And it insists on indenting instances in some funky way that to me looks hideous
when I want it to simply indent each line relative to the previous code block by 2 spaces.
Is there a way to have it use an indent level of 2 for every single line, regardless of construct? I want the syntax highlighting, but the indenting is all over the place and inconsistent.