27 Sep 2023 |
yantar92 (Org contributor) | I tried several. One of them worked | 13:51:12 |
yantar92 (Org contributor) | My memory is vague | 13:51:19 |
Ladislas | ok :) | 13:51:19 |
Ladislas | well, doing it via setenv doesn't work, making a .profile file doesn't work :/ | 14:10:46 |
Ladislas | the onyx-books tablet is set up in french system wide so idk | 14:14:52 |
Ladislas | well...it is possible to force in my org-journal or in my .emacs how i name the days and months (in french) the same way i did it for agenda mode with this : https://www.emacswiki.org/emacs/CalendarLocalization#h5o-13 ? | 20:21:40 |
Ladislas | it works in agenda | 20:22:10 |
blicero | In reply to @gergely:polonkai.eu If YouTube is your game, i strongly recommend this video from the System Crafters Thank you. | 20:44:13 |
28 Sep 2023 |
wisw | Redacted or Malformed Event | 00:48:03 |
| RT Redréovič changed their profile picture. | 13:53:22 |
| owlpar joined the room. | 23:25:10 |
29 Sep 2023 |
| Owlpar joined the room. | 16:29:14 |
30 Sep 2023 |
zmberber | does anyone know of a way to reveal bullet points or subheadings one by one, but all visible on the same slide after revealing, in org-tree-slide or another org mode presentation mode? | 14:54:36 |
zororg | I was using org-present , lately I like org-re-reveal which uses revealjs to do presentation on browser | 15:48:35 |
1 Oct 2023 |
| misterlogdog joined the room. | 00:00:13 |
| prma joined the room. | 07:58:41 |
| hsw joined the room. | 18:24:53 |
2 Oct 2023 |
kyub | Hey. So I recently changed my config to using an init.org file (using tangling to generate the .el files). Since both early-init and init.el are being generated, I have common header block which is written to both files at the top. The corresponding code block for the early-init starts with #+BEGIN_SRC emacs-lisp :tangle ./early-init.el and the one for init.el starts with #+BEGIN_SRC emacs-lisp (:tangle is set to yes in general, meaning it gets written to init.el unless specified otherwise). Since this is a common header block which is almost the same for both files, it feels redundant to have it twice in the config. I wanted to make this dynamic as well - i.e., have just one template code block where a variable gets replaced with X if it's written to early-init.el but replaced with Y if it's written to init.el Does anyone have an idea how to build something like that? Thanks! | 08:50:34 |
alphapapa |
In reply to
kyub
Hey. So I recently changed my config to using an init.org file (using tangling to generate the .el files). Since both early-init and init.el are being generated, I have common header block which is written to both files at the top. The corresponding code block for the early-init starts with #+BEGIN_SRC emacs-lisp :tangle ./early-init.el and the one for init.el starts with #+BEGIN_SRC emacs-lisp (:tangle is set to yes in general, meaning it gets written to init.el unless specified otherwise). Since this is a common header block which is almost the same for both files, it feels redundant to have it twice in the config. I wanted to make this dynamic as well - i.e., have just one template code block where a variable gets replaced with X if it's written to early-init.el but replaced with Y if it's written to init.el Does anyone have an idea how to build something like that? Thanks!
I don't understand why you'd be writing the same code to both files. | 08:56:17 |
kyub | It's just a commentary block :) so not really code | 08:56:42 |
alphapapa |
I see. Well, I guess there's some variable that knows the filename being tangled to. Maybe you could have it written to the file. | 09:01:11 |
kyub | Thanks for the pointer! | 09:01:39 |
alphapapa |
Maybe you could call some code in org-babel-post-tangle-hook too | 09:01:52 |
alphapapa |
because that hook is run in the code file | 09:02:04 |
alphapapa |
e.g. in org-babel-tangle it does:
(when org-babel-post-tangle-hook
(mapc
(lambda (file)
(org-babel-with-temp-filebuffer file
(run-hooks 'org-babel-post-tangle-hook)))
path-collector))
| 09:02:48 |
kyub | I'll check it out. Thanks | 09:04:15 |
alphapapa |
You're welcome. If you find a solution, please share it, e.g. on r/emacs or r/orgmode, for some degree of posterity. | 09:12:30 |
alphapapa |
or maybe even on Worg | 09:12:37 |
| temp4096 joined the room. | 13:33:54 |
| rickbonavigo joined the room. | 15:09:27 |