This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # alda (1)
- # announcements (18)
- # babashka (132)
- # beginners (110)
- # calva (17)
- # cider (53)
- # clara (18)
- # clj-kondo (35)
- # cljdoc (6)
- # clojure (152)
- # clojure-europe (9)
- # clojure-portugal (4)
- # clojure-spec (20)
- # clojure-survey (7)
- # clojure-sweden (10)
- # clojure-uk (10)
- # clojured (1)
- # clojurescript (29)
- # core-async (7)
- # cursive (4)
- # datomic (11)
- # defnpodcast (2)
- # dirac (1)
- # emacs (13)
- # events (2)
- # figwheel-main (1)
- # fulcro (1)
- # jobs (14)
- # jobs-discuss (17)
- # leiningen (2)
- # malli (1)
- # off-topic (74)
- # overtone (1)
- # pedestal (4)
- # planck (2)
- # re-frame (7)
- # reitit (4)
- # remote-jobs (4)
- # shadow-cljs (78)
- # slack-help (3)
- # spacemacs (56)
- # test-check (3)
- # tools-deps (8)
@mmeix autocomplete and yasnippets are working well together for Clojure, so perhaps its just something specific to org-mode.
I just tried exporting a relatively simple org-mode file using
, e e h H and it showed the html code in a separate buffer without any errors. I havent updated for a few months, maybe it is a recent bug.
If you can share the org-mode file, that may be helpful. It could always be something in org-mode file that the export does not like. I am updating my Spacemacs to see if I can replicate
I just updated Spacemacs, the .spacemacs file from the template (`SPC f e D`) and updated a whole list of packages including yasnippets. I successfully created an html export from these org-mode files https://github.com/jr0cket/developer-journal/tree/master/2019
I think something is wrong with my installation. I think I try to replace my
.emacs.d and my
.spacemacs with a fresh copy
I also have a problem with exporting latex-> pdf from org, because it doesn’t find pdflatex on its path
ok, the symptoms in my Spacemacs (develop branch) are: if I turn off autocompletion, I can export html from org-mode
How are you turning autocomplete on and off?
I have autocomplete as a layer in my
.spacemacs file. I assume that it's on automatically for all modes (something I only assumed and never checked).
Do you have any of your own yasnippets defined? Just wondering if any of them could be a problem (I seems unlikely though).
It could be the version of Emacs. I tried on Emacs 27. I can try on Emacs 26.3. What is your version
(I think layer
auto-completion was commented put, when I opened develop the first time, but I’m not sure)
I am thinking it might be something in your .Spacemacs file, or a package that didn't download correctly.
ok, strange … I will install everything new and see …. maybe some bonehead newbie thing going on here
Did you try to export one of my org files from the GitHub repository I shared?
It could be the org file itself. The January 2019 org file works okay for me
If not. I suggest using
SPC f e D to compare your .spacemacs file with the current template. It launches ediff and you can press n to step through all the differences. Press b copy from the template into your own .spacemacs file, unless you know there is something you want to keep (layers, user-config)
the main difference is, that I added three layers under
Adding layers is what you should be doing to add specific features to Spacemacs. This section of the ,spacemacs file usually has more than the template. Also the dotspacemacs/user-config can have a lot of differences as you add your own configuration.
I learned, that for the beginner it’s safer just to make a file with a proper ending such as .html and let Spacemacs decide waht to install .. great!
Here is my .Spacemacs config https://github.com/practicalli/spacemacs-config/blob/master/.spacemacs.d/init.el as an example
Yes, Spacemacs will add the layer for you. This is easy. I usually restart Emacs after adding a layer just to ensure everything is installed.
There is also the online guide if you are doing Clojure development https://practicalli.github.io/spacemacs/
If I activate auto-completion I get the error Autoloading file /Users/meixner/.emacs.d/elpa/26.3/develop/yasnippet-20191222.2206/yasnippet.elc failed to define function yas-global-mode
I think I saw the same or a similar error while Spacemacs did its update routine while starting
Ok, somehow this seems to have been user error, everything working now as intended. Thanks @jr0cket for help and time spent!
now the only problem to solve is: how to make Spacemacs find
pdflatex (while exporting an org file)
/bin/bash: pdflatex: command not found
On develop there is a .spacemacs.env file you can use to add directories to the path that Emacs uses
If something is only in your bashrc file and not in your profile, then it won't be picked up if you run Emacs from a graphic launcher, e.g not from a terminal window.
I usually source my .bashrc from my profile, that does mean I need to logout and log back in again if I add anything
https://develop.spacemacs.org/doc/DOCUMENTATION.html#environment-variables-and-path for future reference :)