Home

Awesome

<a href="https://www.gnu.org/software/emacs/"><img src="https://www.gnu.org/software/emacs/images/emacs.png" alt="Emacs Logo" width="80" height="80" align="right"></a> GitHub license Sponsor MELPA

<!-- [![MELPA Stable](http://stable.melpa.org/packages/v-mode-badge.svg)](http://stable.melpa.org/#/v-mode) -->

V Mode

An Emacs major mode for the V programming language.

screenshot

Features

<!-- - [x] TODO highlighting --> <!-- - [x] Rainbow delimiters --> <!-- - [x] Whitespace character dsiplay --> <!-- - [x] Fill column indicator --> <!-- - [x] `V` mode menu --> <!-- - [x] Code folding -->

Installation

Using MELPA

This package can be obtain from MELPA or MELPA Stable. The master branch is continuously deployed to MELPA, and released versions are deployed to MELPA Stable.

<kbd>M-x package-install [RET] v-mode [RET]</kbd>

Right now v-mode doesn't take a lot of configuration (i.e. it's too simple to need any).

(require 'v-mode)
(define-key v-mode-map (kbd "M-z") 'v-menu)
(define-key v-mode-map (kbd "<f6>")  'v-menu)
(define-key v-mode-map (kbd "C-c C-f") 'v-format-buffer)

Using use-package and straight.el

(use-package v-mode
  :straight (v-mode
             :type git
             :host github
             :repo "damon-kwok/v-mode"
             :files ("tokens" "v-mode.el"))
  :config
  :bind-keymap
  ("M-z" . v-menu)
  ("<f6>" . v-menu)
  ("C-c C-f" . v-format-buffer)
  :mode ("\\(\\.v?v\\|\\.vsh\\)$" . 'v-mode))