SpecmanMode
Specman-Mode.Com Home
Emacs editing mode for Specman
Installing the Specman-mode
VIM editing mode for Specman
Links about Specman

Verilog.Com Home

Privacy

How to Install Specman-Mode version 1.22
for Emacs on Unix and on the PC


Click here if you've got it installed, but got no colors...

Click here if you want to see some frequently asked questions and answers.

Click here if you want to see how to install it on Windows.

First, if you downloded the file over the web, then you can skip steps 1, 2 and 3 and go directly to step step 4. If instead you received the specman-mode via email, follow the directions it came with as to how to unpack the file. Typically it will be something like

  1. Take the mail message your received, and save it into a file. Let us say you save it into a file called foo.

  1. Run uudecode on the file. There is no need to worry about deleting any mail headers; uudecode is pretty smart about all that. What you would type is:

    % uudecode < foo This will create a file called specman-mode.el.gz in your current directory. Now you can remove the file called foo.

    If your uudecode doesn't work right, feel free to use this perl version of uudecode.

  1. Now you need to uncompress the file; use gunzip which you should have, if not you can get it from the Free Software Foundation. Run:

    % gunzip specman-mode.el.gz
  1. To install specman mode for just your own use continue as follows:


    (defun prepend-path ( my-path ) (setq load-path (cons (expand-file-name my-path) load-path))) (defun append-path ( my-path ) (setq load-path (append load-path (list (expand-file-name my-path))))) ;; Look first in the directory ~/elisp for elisp files (prepend-path "~/elisp") ;; Load specman mode only when needed (autoload 'specman-mode "specman-mode" "Specman mode" t ) ;; Any files that end in .e, .e3, et cetera should be in specman mode (setq auto-mode-alist (append (list (cons "\\.e\\'" 'specman-mode) (cons "\\.e3\\'" 'specman-mode) (cons "\\.load\\'" 'specman-mode) (cons "\\.ecom\\'" 'specman-mode) (cons "\\.etst\\'" 'specman-mode)) auto-mode-alist)) ;; Any files in specman mode should have their keywords colorized (add-hook 'specman-mode-hook '(lambda () (font-lock-mode 1)))
  1. To install specman mode for general use, continue as follows:
    ;; Load specman mode only when needed (autoload 'specman-mode "specman-mode" "Specman mode" t ) ;; Any files that end in .e, .e3, et cetera should be in specman mode (setq auto-mode-alist (append (list (cons "\\.e\\'" 'specman-mode) (cons "\\.e3\\'" 'specman-mode) (cons "\\.load\\'" 'specman-mode) (cons "\\.ecom\\'" 'specman-mode) (cons "\\.etst\\'" 'specman-mode)) auto-mode-alist)) ;; Any files in specman mode should have their keywords colorized (add-hook 'specman-mode-hook '(lambda () (font-lock-mode 1)))