Update Doom Emacs config, snippets and babel library
This commit is contained in:
@@ -30,6 +30,16 @@ echo "[[file:$_figdir/$filename.$ext]]"
|
||||
(cons (car tbl) (cons 'hline (cdr tbl)))
|
||||
#+end_src
|
||||
|
||||
* Python Related
|
||||
** =python-dir= Go to current directory
|
||||
|
||||
#+name: python-dir
|
||||
#+begin_src python :tangle no :results none :exports none :var current_dir=""
|
||||
# Go to current Directory
|
||||
import os
|
||||
os.chdir(current_dir)
|
||||
#+end_src
|
||||
|
||||
* Matlab Related
|
||||
** =matlab-dir= Go to current directory
|
||||
|
||||
|
||||
Reference in New Issue
Block a user