Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabulation not working in CSS part of vue-mode #85

Open
M-Gregoire opened this issue Aug 22, 2018 · 3 comments
Open

Tabulation not working in CSS part of vue-mode #85

M-Gregoire opened this issue Aug 22, 2018 · 3 comments

Comments

@M-Gregoire
Copy link

I get an error each time I try to use in the CSS part of a vue file.
Error : vue-mmm-indent-line-narrowed: Symbol’s function definition is void: nil

mmm-mode-0.5.7
vue-mode-20180516.312

Thank you

@AdamNiederer
Copy link
Owner

It's possible that your emacs configuration is causing something to fail. Could you try to reproduce it with emacs -Q, and post a snippet which causes the failure if you can reproduce it there?

@M-Gregoire
Copy link
Author

Thank you for your quick answer ! I've managed to reduce the problem to a minimal example :
init.el

; Let's use melpa !
(require 'package)
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/"))

; We start the package system
(package-initialize)

; Refreshing the package list each time it's loaded
(unless package-archive-contents
  (package-refresh-contents))

; Quick function to download and activate package
(defun ue-ensure-installed (packages)
  (dolist (package packages)
    (unless (package-installed-p package)
      (package-install package))))

; Vue.js
(ue-ensure-installed '(vue-mode))

test.vue

<template>
</template>

<script>
</script>

<style>
  .example
    text-align center
</style>

If you try to indent the .example you will get the error.

I tried to delete my .emacs.d folder and just put the init file above and I do get the indenting error.

@xThuby
Copy link

xThuby commented Nov 13, 2019

Anyone found a solution for this? I'm getting the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants