-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
vmd-mode not installed with markdown layer #6385
Comments
This sexp from (setq markdown-packages
'(
company
company-emoji
emoji-cheat-sheet-plus
gh-md
markdown-mode
markdown-toc
mmm-mode
smartparens
(vmd-mode :toggle (and (eq 'vmd markdown-live-preview-engine)
(executable-find "vmd")))
)) |
Hey, You should check following things:
Otherwise, |
I have just corrected those settings and the problem persists. |
I can't reproduce. Are you sure that
Makes me think that quoted expression return |
This command: (and (eq 'vmd markdown-live-preview-engine) (executable-find "vmd")) returns "$HOME/.npm-packages/bin/vmd" which is where I have installed my node packages.
Is it possible that the variable is not set until after the markdown layer is activated?
After investigating this, I ran f e R and emacs installed vmd-mode. It works now. 😅 |
I reopen for further investigation, it looks like a bug to me. |
@jpfairbanks Can I see your dotfile? It sounds like you're setting |
I am probably using It starts with: ;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; or `spacemacs'. (default 'spacemacs)
dotspacemacs-distribution 'spacemacs
;; Lazy installation of layers (i.e. layers are installed only when a file
;; with a supported type is opened). Possible values are `all', `unused'
;; and `nil'. `unused' will lazy install only unused layers (i.e. layers
;; not listed in variable `dotspacemacs-configuration-layers'), `all' will
;; lazy install any layer that support lazy installation even the layers
;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
;; installation feature and you have to explicitly list a layer in the
;; variable `dotspacemacs-configuration-layers' to install it.
;; (default 'unused)
dotspacemacs-enable-lazy-installation 'unused
;; If non-nil then Spacemacs will ask for confirmation before installing
;; a layer lazily. (default t)
dotspacemacs-ask-for-lazy-installation t
;; If non-nil layers with lazy install support are lazy installed.
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
;; List of configuration layers to load. If it is the symbol `all' instead
;; of a list then all discovered layers will be installed.
dotspacemacs-configuration-layers
'(
html
javascript
python
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press <SPC f e R> (Vim style) or
;; <M-m f e R> (Emacs style) to install them.
;; ----------------------------------------------------------------
helm
auto-completion
;; better-defaults
emacs-lisp
git
github
(markdown :variables markdown-live-preview-engine 'vmd) ;; INTERESTING PART
org
pandoc
mu4e
;; '(mu4e :variables
;; mu4e-installation-path "/usr/share/emacs/site-lisp/")
;; (shell :variables
;; shell-default-height 30
;; shell-default-position 'bottom)
spell-checking
syntax-checking
;; version-control
csv
extra-langs ;includes julia
docker
;; for fun
xkcd
search-engine
)
;; List of additional packages that will be installed without being
;; wrapped in a layer. If you need some configuration for these
;; packages, then consider creating a layer. You can also put the
;; configuration in `dotspacemacs/user-config'.
dotspacemacs-additional-packages '()
;; A list of packages that will not be install and loaded.
dotspacemacs-excluded-packages '(mu4e-maildirs-extension)
;; If non-nil spacemacs will delete any orphan packages, i.e. packages that
;; are declared in a layer which is not a member of
;; the list `dotspacemacs-configuration-layers'. (default t)
dotspacemacs-delete-orphan-packages t))
(defun dotspacemacs/init ()
... |
Hm, no, that does look right. |
In case anyone is thinking about this. I get a log message on startup but
In the messages buffer.
vmd mode still works though. |
Does it still happen, @jpfairbanks ? :) |
Closing for inactivity. |
Description
vmd-mode not installed with markdown layer.
Reproduction guide 🪲
M-: (vmd-mode)
M-x list-packages
to see that vmd-mode is "available" not "installed"Observed behaviour: 👀 💔
You receive this error message:
Expected behaviour: ❤️ 😄
You should see the vmd-mode preview of the markdown file.
System Info 💻
(html javascript python helm auto-completion emacs-lisp git github markdown org pandoc mu4e spell-checking syntax-checking csv extra-langs docker xkcd search-engine)
Backtrace 🐾
The text was updated successfully, but these errors were encountered: