* Batch indent with specific mode
@ 2015-01-29 11:07 Kenneth Brun Nielsen
0 siblings, 0 replies; only message in thread
From: Kenneth Brun Nielsen @ 2015-01-29 11:07 UTC (permalink / raw
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-29 11:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-29 11:07 Batch indent with specific mode Kenneth Brun Nielsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.