Update Doom Emacs config, snippets and babel library

This commit is contained in:
2026-03-09 09:27:31 +01:00
parent 2e8b8b97d9
commit ce13adc1d3
3 changed files with 533 additions and 257 deletions

View File

@@ -424,19 +424,23 @@ $0
#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
#name :Python-Figure
# --
,#+begin_src jupyter-python :file ${2:filename}.png :results none
# Figure - ${1:description}
plt.figure(figsize=(${3:1200}/150, ${4:800}/150), dpi=150)
plt.clf
,#+begin_src python :exports none :results none
# ${1:description}
fig = plt.figure()
$0
plt.savefig('figs/$2.pdf', transparent=True, bbox_inches='tight', pad_inches=0)
,#+end_src
,#+begin_src python :tangle no :results output file replace :file
plt.savefig('figs/${2:filename}.pdf', bbox_inches='tight', pad_inches=0)
,#+end_src
,#+name: fig:$2
,#+caption: $1
,#+RESULTS:
[[file:figs/$2.png]]
#+end_src
** Matlab Specific
*** Mconfig
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/mconfig