2005-12-01 19:58:57 +01:00
|
|
|
Installation:
|
|
|
|
|
2005-12-02 19:37:19 +01:00
|
|
|
** DEPENDANCIES
|
|
|
|
|
|
|
|
This matlab-emacs build system now requires the CEDET suite.
|
2013-04-02 03:01:18 +02:00
|
|
|
If you are using Emacs version 23.2 or later, you should have
|
|
|
|
everything you need.
|
|
|
|
|
|
|
|
For older versions of Emacs, visit:
|
2005-12-02 19:37:19 +01:00
|
|
|
|
|
|
|
http://cedet.sf.net
|
|
|
|
|
|
|
|
The build system uses EDE for project management, Makefile creation,
|
|
|
|
and autoload generation.
|
|
|
|
|
2013-04-02 03:01:18 +02:00
|
|
|
** BUILD
|
2005-12-02 19:37:19 +01:00
|
|
|
|
2013-04-02 03:01:18 +02:00
|
|
|
To build:
|
2009-07-07 14:45:41 +02:00
|
|
|
|
2013-04-02 03:01:18 +02:00
|
|
|
make
|
2005-12-02 19:37:19 +01:00
|
|
|
|
2013-04-02 03:01:18 +02:00
|
|
|
To build using an alternate version of CEDET:
|
2005-12-02 19:37:19 +01:00
|
|
|
|
2013-04-02 03:01:18 +02:00
|
|
|
make CEDET_PATH=~/my/cedet/lisp/
|
2005-12-02 19:37:19 +01:00
|
|
|
|
|
|
|
It is possible to use matlab.el, and associated programs without this
|
|
|
|
extra package. To do so, install and compile only those lisp files
|
|
|
|
you need.
|
|
|
|
|
2020-08-16 03:07:43 +02:00
|
|
|
** CONFIGURE EMACS
|
2008-09-05 15:17:11 +02:00
|
|
|
|
|
|
|
To install all the Emacs tools for MATLAB, add this to your .emacs file:
|
|
|
|
|
2010-01-21 20:08:00 +01:00
|
|
|
(add-to-list 'load-path "~/path/to/matlab_el")
|
2008-09-05 15:17:11 +02:00
|
|
|
(require 'matlab-load)
|
2005-12-02 19:37:19 +01:00
|
|
|
|
2020-08-16 03:07:43 +02:00
|
|
|
** CUSTOMIZATION:
|
2008-09-05 15:17:11 +02:00
|
|
|
|
2020-08-16 03:07:43 +02:00
|
|
|
To customize the behavior of MATLAB mode, customize the matlab group:
|
2008-09-05 15:17:11 +02:00
|
|
|
|
2020-08-16 03:07:43 +02:00
|
|
|
M-x customize-group RET matlab RET
|
2005-12-01 19:58:57 +01:00
|
|
|
|
2020-08-16 03:07:43 +02:00
|
|
|
Some popular customization options:
|
2005-12-01 19:58:57 +01:00
|
|
|
|
|
|
|
(setq matlab-indent-function-body t) ; if you want function bodies indented
|
2020-08-16 03:07:43 +02:00
|
|
|
|
2005-12-01 19:58:57 +01:00
|
|
|
(setq matlab-verify-on-save-flag nil) ; turn off auto-verify on save
|
2020-08-16 03:07:43 +02:00
|
|
|
|
2005-12-01 19:58:57 +01:00
|
|
|
(defun my-matlab-mode-hook ()
|
|
|
|
(setq fill-column 76)) ; where auto-fill should wrap
|
2020-08-16 03:07:43 +02:00
|
|
|
|
2005-12-01 19:58:57 +01:00
|
|
|
(add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
|
2020-08-16 03:07:43 +02:00
|
|
|
|
2005-12-01 19:58:57 +01:00
|
|
|
(defun my-matlab-shell-mode-hook ()
|
|
|
|
'())
|
2020-08-16 03:07:43 +02:00
|
|
|
|
2005-12-01 19:58:57 +01:00
|
|
|
(add-hook 'matlab-shell-mode-hook 'my-matlab-shell-mode-hook)
|
|
|
|
|
|
|
|
Please read the mode help for matlab-mode for additional
|
|
|
|
configuration options.
|
|
|
|
|
2005-12-01 20:06:29 +01:00
|
|
|
|
2020-08-16 03:07:43 +02:00
|
|
|
** TLC
|
2005-12-01 20:06:29 +01:00
|
|
|
|
2014-11-05 19:29:50 +01:00
|
|
|
To use this mode without using the full install, put the this file
|
2008-09-05 15:17:11 +02:00
|
|
|
into your load path, and add the following to your .emacs file:
|
2005-12-01 20:06:29 +01:00
|
|
|
|
|
|
|
(require 'tlc)
|
|
|
|
or
|
|
|
|
(autoload 'tlc-mode "tlc" "tlc Editing Mode" t)
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.tlc$" . tlc-mode))
|
|
|
|
(setq tlc-indent-function t)
|
|
|
|
|