emacs vue.js_基于mmm模式的vue.js的Emacs主要模式

emacs vue.js

语音模式 (vue-mode)

Emacs major mode for vue.js.

vue.js的Emacs主要模式。

安装 (Install)

Emacs users may install the package from MELPA. vue-mode should then be activated on all files with a .vue extension.

Emacs用户可以从MELPA安装该软件包。 然后,应在所有扩展名为.vue文件上激活vue-mode

太空巨星 (Spacemacs)

There are two ways to install and configure vue-mode when using spacemacs.

使用spacemacs时,有两种安装和配置vue模式的方法。

没有层的简单方法 (The Simple Way, Without a Layer)

Spacemacs allows the installation of additional packages outside of its layer system using the dotspacemacs-additional-packages variable. Add vue-mode to this list.

Spacemacs允许使用dotspacemacs-additional-packages变量在其层系统之外安装其他软件包。 将vue-mode添加到此列表。

Edit your ~/.spacemacs file as follows (to find it press SPC f e d):

如下所示编辑~/.spacemacs文件(要找到它,请按SPC f e d ):

dotspacemacs-additional-packages '(vue-mode)
带一层 (With a Layer)

Creating a layer is a more complicated method of installing the package, but it allows for greater flexibility, and faster started via autoloading. You can read more about it here: Spacemacs Layers.

创建层是安装软件包的更复杂的方法,但是它可以提供更大的灵活性,并可以通过自动加载更快地启动。 您可以在这里阅读有关它的更多信息: Spacemacs Layers

The following is a minimal package.el file for a custom vue-mode layer:

以下是用于自定义vue-mode层的最小package.el文件:

(setq vue-mode-packages
  '(vue-mode))

(setq vue-mode-excluded-packages '())

(defun vue-mode/init-vue-mode ()
  "Initialize my package"
  (use-package vue-mode))

If you want to customize the region background color (default is highlight):

如果要自定义区域背景色(默认为突出显示):

(defun vue-mode/init-vue-mode ()
  (use-package vue-mode
               :config
               ;; 0, 1, or 2, representing (respectively) none, low, and high coloring
               (setq mmm-submode-decoration-level 0)))

翻译自: https://vuejsexamples.com/emacs-major-mode-for-vue-js-based-on-mmm-mode/

emacs vue.js

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值