V: Emacs mode for V

Created on 28 Nov 2019  路  2Comments  路  Source: vlang/v

Has anybody put together an Emacs mode for V?

If not, I guess go-mode would be a good starting point for branching into v-mode.

Feature Request

Most helpful comment

I do use go-mode for emacs in tandem with smart-compile , and that combination works very nicely.

Other changes related to V, that I've made to my .emacs are these lines:

(require 'smart-compile)
(defun save-compile-buffer()
  (interactive)
  (save-buffer)
  (smart-compile 1)
)
(global-set-key [f5]   'save-compile-buffer)
(global-set-key [f6]   'next-error)
(add-to-list 'auto-mode-alist '("\\.v\\'" . go-mode))
(add-to-list 'smart-compile-alist
           '("\\.v\\'" . "VERROR_PATHS=absolute /usr/local/bin/v -g run %f"))

All 2 comments

I do use go-mode for emacs in tandem with smart-compile , and that combination works very nicely.

Other changes related to V, that I've made to my .emacs are these lines:

(require 'smart-compile)
(defun save-compile-buffer()
  (interactive)
  (save-buffer)
  (smart-compile 1)
)
(global-set-key [f5]   'save-compile-buffer)
(global-set-key [f6]   'next-error)
(add-to-list 'auto-mode-alist '("\\.v\\'" . go-mode))
(add-to-list 'smart-compile-alist
           '("\\.v\\'" . "VERROR_PATHS=absolute /usr/local/bin/v -g run %f"))

@spytheman Do you still do the above or do you use https://github.com/damon-kwok/v-mode ? Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

choleraehyq picture choleraehyq  路  3Comments

XVilka picture XVilka  路  3Comments

clpo13 picture clpo13  路  3Comments

vtereshkov picture vtereshkov  路  3Comments

radare picture radare  路  3Comments