mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
add octave/matlab to org babel
This commit is contained in:
parent
1366513f51
commit
dae8183bf2
1 changed files with 115 additions and 117 deletions
36
emacs.nix
36
emacs.nix
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue