Fork me on GitHub
#spacemacs
<
2020-01-08
>
practicalli-johnny15:01:22

@mmeix autocomplete and yasnippets are working well together for Clojure, so perhaps its just something specific to org-mode.

practicalli-johnny15:01:13

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.

mmeix15:01:14

I will try again and report

practicalli-johnny15:01:36

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

practicalli-johnny16:01:03

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

mmeix18:01:52

@jr0cket is this the master branch or develop?

mmeix18:01:15

I think something is wrong with my installation. I think I try to replace my .emacs.d and my .spacemacs with a fresh copy

mmeix18:01:34

will report

mmeix18:01:39

I also have a problem with exporting latex-> pdf from org, because it doesn’t find pdflatex on its path

mmeix18:01:16

(sorry for being newbie-like confused, I have a strong will to learn 🙂

mmeix18:01:07

ok, the symptoms in my Spacemacs (develop branch) are: if I turn off autocompletion, I can export html from org-mode

practicalli-johnny18:01:50

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).

mmeix18:01:19

I comment it in and out in .spacemacs

mmeix18:01:44

I have not created any snippets so far

practicalli-johnny18:01:01

It could be the version of Emacs. I tried on Emacs 27. I can try on Emacs 26.3. What is your version

mmeix18:01:29

(I think layer auto-completion was commented put, when I opened develop the first time, but I’m not sure)

mmeix18:01:59

emacs 26.3

mmeix18:01:48

this was the official Mac build i got from https://www.gnu.org/software/emacs/

mmeix18:01:09

I could try a fresh install of everything

mmeix18:01:24

((where would I find emacs 27?)

mmeix18:01:56

it says “Emacs 26.3 - Latest release Released Aug 28, 2019”

mmeix18:01:49

I will try to install v27

practicalli-johnny18:01:17

Tried on 26.3 and it works just fine there too

practicalli-johnny18:01:14

I am thinking it might be something in your .Spacemacs file, or a package that didn't download correctly.

mmeix18:01:22

ok, strange … I will install everything new and see …. maybe some bonehead newbie thing going on here

practicalli-johnny18:01:45

Did you try to export one of my org files from the GitHub repository I shared?

mmeix18:01:45

thanks for your time - really appreciated!!

mmeix18:01:58

I can try that

practicalli-johnny18:01:43

It could be the org file itself. The January 2019 org file works okay for me

practicalli-johnny18:01:04

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)

mmeix18:01:37

ah! something new to learn .. will try!

mmeix18:01:20

That’s a great tool

mmeix18:01:28

the main difference is, that I added three layers under dotspacemacs-configuration-layers

mmeix18:01:35

javascript, html, clojure

mmeix18:01:22

maybe this was an beginner’s error

practicalli-johnny20:01:08

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.

mmeix20:01:56

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!

mmeix20:01:04

Thanks: something to learn from.

mmeix20:01:37

ah: clj-kondo

practicalli-johnny20:01:08

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.

practicalli-johnny20:01:06

There is also the online guide if you are doing Clojure development https://practicalli.github.io/spacemacs/

mmeix20:01:37

ja, Clojure and org were the main motivations to come here

mmeix18:01:58

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

mmeix18:01:14

I think I saw the same or a similar error while Spacemacs did its update routine while starting

mmeix20:01:56

Ok, somehow this seems to have been user error, everything working now as intended. Thanks @jr0cket for help and time spent!

mmeix20:01:30

now the only problem to solve is: how to make Spacemacs find pdflatex (while exporting an org file) /bin/bash: pdflatex: command not found

practicalli-johnny20:01:47

On develop there is a .spacemacs.env file you can use to add directories to the path that Emacs uses

mmeix20:01:06

ah, great!

practicalli-johnny20:01:14

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.

practicalli-johnny20:01:58

I usually source my .bashrc from my profile, that does mean I need to logout and log back in again if I add anything

practicalli-johnny20:01:48

Of you add anything to bashrc, then you would need to restart emacs

mmeix20:01:17

Great - that worked! All problems solved! Many thanks again!