Update matlab path
This commit is contained in:
parent
ae680ee164
commit
bfd2f1a4b6
@ -8,7 +8,6 @@ Ressources:
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args:emacs-lisp+: :tangle ~/.spacemacs.d/user-init.el
|
:header-args:emacs-lisp+: :tangle ~/.spacemacs.d/user-init.el
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
** Melpa
|
** Melpa
|
||||||
#+begin_src emacs-lisp :tangle no
|
#+begin_src emacs-lisp :tangle no
|
||||||
(add-to-list 'package-archives '("melpa" . "http://www.mirrorservice.org/sites/melpa.org/packages/"))
|
(add-to-list 'package-archives '("melpa" . "http://www.mirrorservice.org/sites/melpa.org/packages/"))
|
||||||
@ -303,6 +302,7 @@ r (<= (overlay-start ov) (point))
|
|||||||
(interactive "P")
|
(interactive "P")
|
||||||
(helm-bibtex arg nil "favorite "))
|
(helm-bibtex arg nil "favorite "))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** List all element of the bibliography without pdf associated
|
*** List all element of the bibliography without pdf associated
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun list-bib-without-pdf-associated ()
|
(defun list-bib-without-pdf-associated ()
|
||||||
@ -661,7 +661,7 @@ Documentation:
|
|||||||
**** Org-Babel Matlab
|
**** Org-Babel Matlab
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(with-eval-after-load 'org
|
(with-eval-after-load 'org
|
||||||
(setq org-babel-matlab-shell-command "/usr/local/bin/matlab -nodesktop -nosplash")
|
(setq org-babel-matlab-shell-command "/home/thomas/bin/matlab -nodesktop -nosplash")
|
||||||
|
|
||||||
(setq org-babel-matlab-emacs-link-wrapper-method
|
(setq org-babel-matlab-emacs-link-wrapper-method
|
||||||
"%s
|
"%s
|
||||||
@ -807,6 +807,7 @@ https://emacs.stackexchange.com/questions/30575/adding-latex-newpage-before-a-he
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** TODO HTML Export
|
**** TODO HTML Export
|
||||||
***** MathJax
|
***** MathJax
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@ -1197,6 +1198,7 @@ https://emacs.stackexchange.com/questions/156/emacs-function-to-convert-an-arbit
|
|||||||
|
|
||||||
(advice-add 'org-create-formula-image :around #'org-renumber-environment)
|
(advice-add 'org-create-formula-image :around #'org-renumber-environment)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** TODO [#A] View PDF in org mode
|
*** TODO [#A] View PDF in org mode
|
||||||
#+begin_src emacs-lisp :tangle no
|
#+begin_src emacs-lisp :tangle no
|
||||||
(defun tdh/org-include-img-from-pdf (&rest _)
|
(defun tdh/org-include-img-from-pdf (&rest _)
|
||||||
@ -1608,14 +1610,14 @@ https://www.reddit.com/r/emacs/comments/d3a8or/pretty_org_tables_in_the_buffer_c
|
|||||||
|
|
||||||
*** Setup Matlab Mode
|
*** Setup Matlab Mode
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq matlab-shell-command "/usr/local/bin/matlab")
|
(setq matlab-shell-command "/home/thomas/bin/matlab")
|
||||||
(setq matlab-shell-command-switches (list "-nodesktop -nosplash"))
|
(setq matlab-shell-command-switches (list "-nodesktop -nosplash"))
|
||||||
(setq mlint-programs '("mlint" "/usr/local/bin/mlint"))
|
(setq mlint-programs '("mlint" "/home/thomas/bin/mlint"))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Setup Flycheck
|
*** Setup Flycheck
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defvar mlint-executable "/usr/local/bin/mlint")
|
(defvar mlint-executable "/home/thomas/bin/mlint")
|
||||||
|
|
||||||
(flycheck-define-command-checker 'matlab-mlint
|
(flycheck-define-command-checker 'matlab-mlint
|
||||||
"A Matlab checker based on mlint."
|
"A Matlab checker based on mlint."
|
||||||
@ -2358,8 +2360,7 @@ $0
|
|||||||
,* ${1:Function Name}
|
,* ${1:Function Name}
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args:matlab+: :tangle src/${2:matlab_file_name}.m
|
:header-args:matlab+: :tangle src/${2:matlab_file_name}.m
|
||||||
:header-args:matlab+: :comments none :mkdirp yes
|
:header-args:matlab+: :comments none :mkdirp yes :eval no
|
||||||
:header-args:matlab+: :eval no
|
|
||||||
:END:
|
:END:
|
||||||
<<sec:$2>>
|
<<sec:$2>>
|
||||||
|
|
||||||
@ -2369,7 +2370,7 @@ This Matlab function is accessible [[file:src/$2.m][here]].
|
|||||||
function [${4:in_data}] = $2(${3:in_data})
|
function [${4:in_data}] = $2(${3:in_data})
|
||||||
% $2 - $0
|
% $2 - $0
|
||||||
%
|
%
|
||||||
% Syntax: [$4] = voltageToVelocityL22($3)
|
% Syntax: [$4] = $2($3)
|
||||||
%
|
%
|
||||||
% Inputs:
|
% Inputs:
|
||||||
% - $3 -
|
% - $3 -
|
||||||
|
Loading…
Reference in New Issue
Block a user