Skip to content

🌻 An Emacs major mode for the V programming language.

License

Notifications You must be signed in to change notification settings

damon-kwok/v-mode

Repository files navigation

GitHub license Sponsor

V Mode

An Emacs major mode for the V programming language.

  • Screenshot

screenshot

Features

  • Syntax highlighting (font-lock)
  • Indentation
  • TODO highlighting
  • Rainbow delimiters
  • Whitespace character dsiplay
  • Fill column indicator
  • V mode menu
  • Workspace support
  • Auto format on save
  • Code folding
  • Compilation integration
  • Code navigation (using imenu)
  • Go to definition (using ctags)
  • Code completion (using company-mode)
  • REPL

Installation

Using MELPA (COMING SOON)

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.

M-x package-install [RET] v-mode [RET]

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)

(with-eval-after-load 'company (company-ctags-auto-setup))
(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))

(with-eval-after-load 'company (company-ctags-auto-setup))

About

🌻 An Emacs major mode for the V programming language.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project