Specman Editing Mode for Emacs
This Emacs mode is for editing source code written in the Specman/e (aka IEEE1647) hardware verification language, as well as Specman command files.
- Syntax highlighting
- GNU Global support via ggtags (https://github.com/leoliu/ggtags)
- Comment editing in dedicated mode (derived from text-mode)
- Automatic header generation and insertion
- Uses Emacs’ syntax parsing facilities for traversing source
code. This has a significant impact on
specman-mode’s code size as well as performance of e.g. indentation.
At the moment specman-mode consists of only one file. Download and put
it where Emacs can find it. See the documentation for the Emacs
load-path. Then add something like the following to your
init file (e.g.
(autoload 'specman-mode "specman-mode" "Specman code editing mode" t) (add-to-list 'auto-mode-alist '("\\.e\\(?:3\\|com\\|tst\\)?\\'" . specman-mode)) (add-to-list 'auto-mode-alist '("\\.load\\'" . specman-mode))
If you prefer use-package, please add te following lines:
(use-package specman-mode :mode ("\\.e\\(?:com\\|rld\\)?\\'" . specman-mode))
Historically, specman-mode used to work in both Emacs and XEmacs (possibly SXEmacs, too). Development for the latter two projects has slowed down a lot, while at the same time the pace of Emacs development increased quite a bit. Some newer features in Emacs that specman-mode is starting to take advantage of may not have been ported to (S)XEmacs, yet.
When this document refers to “Emacs”, the other two (or in fact any other Emacs implementation) aren't necessarily excluded.
The 1.xx branch marks the end of active support for XEmacs. While I can't afford investing more time into maintaining (and testing!) XEmacs compatibility, I am happy to address reported issues with XEmacs affecting features up to version 1.25. Patches are welcome, too!
Development will continue with version 2.x.