[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Batch indent with specific mode
From: |
Kenneth Brun Nielsen |
Subject: |
Batch indent with specific mode |
Date: |
Thu, 29 Jan 2015 03:07:00 -0800 (PST) |
User-agent: |
G2/1.0 |
Verilog files usually have the extension *.v.
I want to batch indent a Verilog-syntax file named something.va following this
idea:
http://www.veripool.org/projects/verilog-mode/wiki/Faq#How-do-I-reindent-Verilog-code-from-the-command-line
If I directly on the file something.va it DOES NOT work:
--
$ emacs --batch verilog.va -f verilog-batch-indent
Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/verilog-mode-init.el (source)...
Symbol's function definition is void: verilog-batch-indent
--
If I rename the file to something.v it works:
--
$ emacs --batch verilog.v -f verilog-batch-indent
Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/verilog-mode-init.el (source)...
Processing /home/kennethn/Documents/sandbox/emacs/verilog.v
Indenting region...
Indenting region...done
Saving file /home/kennethn/Documents/sandbox/emacs/verilog.v...
Wrote /home/kennethn/Documents/sandbox/emacs/verilog.v
--
How can I tweak the batch function to work for *.va files?
Best regards,
Kenneth
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Batch indent with specific mode,
Kenneth Brun Nielsen <=