Skip to content

ooglyhLL/specman-mode

master
Switch branches/tags
Code
This branch is 150 commits ahead of hackonteur:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Specman Editing Mode for Emacs

Overview

This Emacs mode is for editing source code written in the Specman/e (aka IEEE1647) hardware verification language, as well as Specman command files.

Notable features:

  • Syntax highlighting
  • Indentation
  • Imenu
  • GNU Global support via ggtags (https://github.com/leoliu/ggtags)
  • Eldoc
  • 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.

Installation

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 variable load-path. Then add something like the following to your init file (e.g. $HOME/.emacs.d/init.el):

(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))

Compatibility

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.

Future

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.

About

Specman Mode for Emacs 24.3+ & XEmacs 21.5+ (Fork from stale specman-mode.com)

Resources

Stars

Watchers

Forks

Languages

  • Emacs Lisp 100.0%