branch: externals/matlab-mode
commit 06b5b3f8914a5bfef195c71a03a61947597d2ebf
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    doc/matlab-code-indent.org: add a FAQ section
---
 doc/matlab-code-indent.org | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/doc/matlab-code-indent.org b/doc/matlab-code-indent.org
index 907049119f..dc825b7cc8 100644
--- a/doc/matlab-code-indent.org
+++ b/doc/matlab-code-indent.org
@@ -27,17 +27,22 @@ When using matlab-ts-mode (and not matlab-mode) the MATLAB 
indent engine:
 
 1. How do I shorten long code lines?
 
-   The location of the ellipsis line continuation influences the length of 
code lines. For exmaple,
+   The location of the ellipsis line continuation influences the length of 
code lines. For example,
+   the arguments of a function are aligned, therefore if you want the 
arguments close to the left,
+   column, put the ellipsis after the opening parenthesis of the function:
 
    #+begin_src matlab
-     longVariableNameForMatrix1 = [ 
-                                    100, 2000, 3000
-                                    4000, 5000, 6000
-                                  ];
-                                   
+     longVariableNameForMatrix1 = myFcn(arg1, ...
+                                        reallyLongArg2);
    #+end_src
 
+   v.s.
    
+   #+begin_src matlab
+     longVariableNameForMatrix1 = myFcn( ...
+         arg1, ...
+         reallyLongArg2);
+   #+end_src
 
 * Indent Engine Design Considerations
 

Reply via email to