GithubHelp home page GithubHelp logo

00mjk / v-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from damon-kwok/v-mode

0.0 0.0 0.0 112 KB

๐ŸŒป An Emacs major mode for the V programming language.

Home Page: https://vlang.io

License: GNU General Public License v3.0

Emacs Lisp 100.00%

v-mode's Introduction

Emacs Logo GitHub license Sponsor MELPA

V Mode

An Emacs major mode for the V programming language.

  • Screenshot

screenshot

Features

  • Syntax highlighting (font-lock)
  • Indentation
  • Workspace support
  • Auto format on save
  • Compilation integration
  • Code navigation (using imenu)
  • Go to definition (using ctags)
  • Code completion (using company-mode)
  • REPL

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.

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)

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))

v-mode's People

Contributors

albertogp avatar damon-kwok avatar ylluminarious avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.