veripool / verilog-mode

Verilog-Mode for Emacs with Indentation, Hightlighting and AUTOs. Master repository for pushing to GNU, verilog.com and veripool.org.
http://veripool.org/verilog-mode
GNU General Public License v3.0
246 stars 90 forks source link

When running xemacs -batch filename -f verilog-batch-auto from command line, I would like the results to have spaces instead of tabs #1873

Closed longhorngeek closed 3 months ago

longhorngeek commented 3 months ago

Hello Willson,

Is there a way when running

xemacs -batch filename -f verilog-batch-auto

for the results have spaces instead of tabs in the AUTOINST results without modifying .emacs or a similar file so that the change is universal for all users that run the from the command line?

Alternatively, is there a way to run "untabify" from the command line without modifying a user's .emacs file so that it is universal for all users when running from the command line?

Thank you

wsnyder commented 3 months ago

You can add a post-autos hook in a .el file, then run emacs with e.g. "emacs -f untabify.el"

e.g.

(add-hook 'before-save-hook
    '(lambda ()
      (untabify (point-min) (point-max))))