Blob


1 # vmd.el
3 vmd is an Emacs package to interact with [OpenBSD' vmd][vmd].
6 ### vterm integration
8 To use vterm (or any other packages really) to handle a shell for the
9 console, `vmd-console-function` must point to a function that accepts
10 two parameters, name and cmd, and execute cmd (a list of strings) in
11 your preferred terminal. By default, `ansi-term` (bundled with Emacs)
12 is used, so it's easy to switch to vterm:
14 ```elisp
15 (defun my/vmd-vterm (name cmd)
16 (let ((vterm-shell (mapconcat #'shell-quote-argument cmd " "))
17 (vterm-buffer-name (concat "*" name "*")))
18 (vterm)))
19 (setq vmd-console-function #'my/vmd-vterm)
20 ```
23 [vmd]: http://man.openbsd.org/vmd