Re: [O] Feature request: Maintaining multiple init files with one org file

2018-07-30 Thread Diego Zamboni
Hi Sven, Personally, I do not like the idea of having to generate the config files on every host - I prefer to tangle once, on my main machine, and then distribute (via git) both the org source and the tangled result to all my machines. This results in much lower maintenance effort - otherwise I

Re: [O] Feature request: Maintaining multiple init files with one org file

2018-07-30 Thread Sven Bretfeld
Hi Eric So all in all I feel that there is a demand for my suggestion. Orgmode has the power to yield a real good solution for centralized init file maintenance, but at the moment we have to help ourselves with workarounds. Tag-filtering for tangling functions would be the best way to go in the

Re: [O] Feature request: Maintaining multiple init files with one org file

2018-07-30 Thread Eric S Fraga
On Sunday, 29 Jul 2018 at 12:42, Sven Bretfeld wrote: [...] > At the moment I have a separate .emacs for the tablet and have to > remember changing this file, for ex. whenever I include a new file in > the org-agenda-files list. This could be much more tidy with an org > approach. The approach

Re: [O] Feature request: Maintaining multiple init files with one org file

2018-07-29 Thread Sven Bretfeld
Hi Armin That's an interesting approach. I didn't think about giving arguments to the :tangle operator. This is basically what I was looking for. Just a bit more to write to each relevant source block. I will give it a try. Sven Amin Bandali writes: > Hello, > > Indeed, a tag-based solution

Re: [O] Feature request: Maintaining multiple init files with one org file

2018-07-29 Thread Sven Bretfeld
Hi Thanks for the answer. Tim Cross writes: > As your emacs init file is really just a lisp program, it is relatively > easy to implement multiple environment support within the file itself, > which is what I do. At the start of my init file, I just have some elisp > which sets variables

Re: [O] Feature request: Maintaining multiple init files with one org file

2018-07-28 Thread Tim Cross
I suspect part of the reason org doesn't have specific support for this is because for many, solving the multiple machine/multiple platform/multiple environment issue pre-dates org and so wasn't an itch needing to be scratched. I've been using pretty much the same approach since emacs 21. As

Re: [O] Feature request: Maintaining multiple init files with one org file

2018-07-28 Thread Amin Bandali
Hello, Indeed, a tag-based solution (e.g. with :office:, :home:, etc) would be great; but what I do right now looks something like this: , | #+property: header-args :tangle ~/.emacs | | * Default Frame | | ** All computers | #+begin_src emacs-lisp | (defvar myvar "testing") | #+end_src | |

[O] Feature request: Maintaining multiple init files with one org file

2018-07-28 Thread Sven Bretfeld
Hi I don't know how you guys maintain init files for different hosts. I have one org-file with the header: #+PROPERTY: header-args :tangle ~/.emacs The file is synced to all my machines and produces the local init files on each. Most configurations are shared, but some are host-specific (e.g.