From: Kenneth Brun Nielsen <kenneth.brun.nielsen@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Batch indent with specific mode
Date: Thu, 29 Jan 2015 03:07:00 -0800 (PST) [thread overview]
Message-ID: <debeb547-ba88-48f0-80b1-8619b600e867@googlegroups.com> (raw)
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
reply other threads:[~2015-01-29 11:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=debeb547-ba88-48f0-80b1-8619b600e867@googlegroups.com \
--to=kenneth.brun.nielsen@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.