add octave/matlab to org babel

This commit is contained in:
willemml 2023-01-17 16:00:27 -08:00
parent 1366513f51
commit dae8183bf2
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD

View file

@ -535,6 +535,20 @@ in {
after = [ "org" ];
};
ob-matlab = {
enable = true;
after = [ "org" ];
init = ''
; -*-emacs-lisp-*-
(setq org-babel-octave-shell-command "${pkgs.octave}/bin/octave -q")
(setq org-babel-matlab-shell-command "~/Applications/MATLAB_R2022b.app/bin/matlab -nosplash")
'';
extraPackages = [ pkgs.octave ];
};
ob-python = {
enable = true;
extraPackages = [
@ -567,7 +581,7 @@ in {
meow = {
enable = true;
config = ''
init = ''
; -*-emacs-lisp-*-
(defun meow-setup ()
(setq meow-cheatsheet-layout meow-cheatsheet-layout-colemak)
@ -650,6 +664,8 @@ in {
'("z" . meow-pop-selection)
'("'" . repeat)
'("<escape>" . ignore)))
(meow-setup)
'';
};
@ -676,24 +692,6 @@ in {
extraPackages = [ pkgs.pngpaste ];
};
exec-path-from-shell = {
enable = false;
init = ''
; -*-emacs-lisp-*-
(dolist (var '("LANG" "LC_CTYPE" "LC_MESSAGES" "NIX_SSL_CERT_FILE" "NIX_PROFILES" "JAVA_HOME" "GNUPGHOME"))
(add-to-list 'exec-path-from-shell-variables var))
(when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))
(when (daemonp)
(exec-path-from-shell-initialize))
(add-to-list 'exec-path "/Users/willem/.nix-profile/bin")
'';
};
ivy-bibtex = {
enable = true;
init = ''