-
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
Org babel support #1159
Org babel support #1159
Conversation
I would not enable all of those layers by default. Why not explain in the Readme how to enable them in the .spacemacs? Another way would be to introduce a variable that can be set in .spacemacs so that the users do not have to concern themselves with lazy loading issues. |
Also put some sane defaults to it
f5a7cc2
to
27a18d1
Compare
So what do we do about this ? What is the impact of adding a bunch of language, does it slow down something ? I yes the we should enable less languages. An approach would be to enable the languages that are used by the user and let her add additional languages in her dotfile. Ideally, the user should have just to add symbols to a variable. A variable in the dotfile seems the best approach. Could be named |
Being honest I don't see much overhead of adding a bunch of languages. Although I do think that at least the languages the user has installed should be suggested as default in org-babel. Another approach could be that each language layer had a :variable org-babel-support but that is WAY messier. I'm fine with the first approach, but I do not know how to implement it :( Some guidelines would be appreciated. thanks :) |
Mmmmh if a language is added, the major-mode is required right ? So the user has to enable the corresponding layer ? |
You can see the requirements here http://orgmode.org/worg/org-contrib/babel/languages.html. |
Indeed we go for the README solution for now. I like the idea to enable automatically the support of babel for used layers though. It could be easily achievable by creating a function that any layer can use in its |
ok this works for me On Sat, Apr 25, 2015 at 2:01 AM, Sylvain Benner notifications@github.com
|
In fact to support it very cleanly we should add |
I'm not sure how necessary it is, in fact. The docs indicate that once an In my case, I can evaluate elixir even if I don't add it to http://orgmode.org/manual/Languages.html PS Sorry for the double commenting... meant to post at #1918 |
@usharf can you |
@CestDiego Not this one, I just checked and also looked at the source... but even so, no problem evaluating elixir code blocks once |
@CestDiego this is invalid -- it's against master -- should prolly close it :P |
oh man...The times I didn't know how to PR xD |
Add this in a new PR <3 - I need it in my life <3 |
I thought this was enabled by default in Spacemacs? D: |
I'm planning on reviving org babel. @syl20bnr Are there any more pointers to take in mind? |
@CestDiego Good idea, I started to use it for literate devops and I had to add some initialization stuff in my user-config, would be nice to support it out of the box. |
I was wondering about that. Should we do like in that commit for every lang layer supported by babel ? 931652b |
Using @CharlesHD I believe it should be one PR. I see two ways of enabling babel for supported languages. First one is to manually create I like second solution as it results in no code duplication. On the other hand it's breaking encapsulation a little bit. I mean, we let org layer to know about other layers. And more over - it creates post-init hook, which might sound really bad for some cases. What do you guys think? |
@d12frosted If we would want to centralize it shouldn't it be enough to just call |
Ah. Good point, there is no need to make use-package hook. Just add to list. But yeah, only for enabled layers. |
Is there a mechanism to get all current active layers ? |
@CharlesHD AFAIK there is no function to get all active layers, but you can easily fetch one using P. S. |
I wonder if there will be a way of configuring what packages to add to babel. Cannot think of any. Shall we just add all of the packages we can?