Add Matlab mode
This commit is contained in:
parent
d76370a796
commit
a7de84c472
1 changed files with 26 additions and 0 deletions
26
init.el
26
init.el
|
@ -336,6 +336,32 @@
|
|||
(setq buffer-face-mode-face '(:family "APL385 Unicode" :height 150))
|
||||
(buffer-face-mode))
|
||||
|
||||
(use-package matlab
|
||||
:config
|
||||
;; This is a simple script to set the required environment variables
|
||||
;; before launching Matlab in Emacs. This prevents an issue where
|
||||
;; all plot windows are blank. See Arch wiki for more details.
|
||||
|
||||
;; #!/usr/bin/env bash
|
||||
;; export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
;; /usr/local/bin/matlab "$@"
|
||||
(setq matlab-shell-command "~/.local/bin/run_matlab.sh")
|
||||
(setq matlab-shell-command-switches '("-nodesktop"))
|
||||
(setq mlint-program "/usr/local/bin/mlint")
|
||||
(setq-default matlab-show-mlint-warnings t)
|
||||
(set-face-attribute 'linemark-stop-face nil
|
||||
:background 'unspecified
|
||||
:underline '(:color "red3" :style wave))
|
||||
(set-face-attribute 'linemark-caution-face nil
|
||||
:background 'unspecified
|
||||
:underline '(:color "yellow4" :style wave))
|
||||
(set-face-attribute 'linemark-go-face nil
|
||||
:background 'unspecified
|
||||
:underline '(:color "green4" :style wave))
|
||||
(set-face-attribute 'linemark-funny-face nil
|
||||
:background 'unspecified
|
||||
:underline '(:color "blue3" :style wave)))
|
||||
|
||||
(use-package dyalog-mode
|
||||
:ensure t
|
||||
:hook (dyalog-mode . my-buffer-face-mode-apl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue