From: Cosseddu, Salvatore (
Date: Thu Mar 06 2014 - 11:21:28 CST

Dear all,

I'd like to share with you a small tool that you might find useful, as a way to say thank you to VMD developers and community.

It is a small emacs mode I developed to easily run VMD within emacs. Practically it is derived from tcl-mode (it allows nice highlighting) but it adds on top of that the possibility to run VMD in an alternative buffer and to send the command from the script to VMD with few convenient shortcuts. I kept it simple because I'm not the expert in lisp and because it does what I really need. Anyway you can download it from

(I'm providing the git repository so you can have the very last version, in case I will modify it)

Quick instructions:


1. installation:
add to your .emacs file
(load "<path>/esmd.el")
you might want to add the lines
(add-to-list 'auto-mode-alist '("\\.vmd\\'" . vmd-mode))
(autoload 'vmd-mode "vmd" "Major mode for VMD." t)
any file with the extension .vmd should be recognised. You can call
the mode manually by "M-x vmd-mode";

2. run VMD within emacs use "M-x vmd-run";

3. start working:

Three combinations of keys are added to tcl-mode
to directly interact with VMD:
- "\C-c\C-n" vmd-send-line
- "\C-c\C-r" vmd-send-region
- "\C-c\C-q" vmd-send-abort

I find it useful because it speeds up scripting and debugging processes, as well as on-fly analyses.

I hope you might find it useful as well.

Best regards

ps. sorry if you'll receive this e-mail twice, but I am not sure I put the right subject in the first one.

Salvatore Cosseddu
PhD student
Centre for Scientific Computing and School of Engineering
University of Warwick
Coventry CV4 7AL
United Kingdom