<div dir="ltr">Hi Chris,<div>In the past I did try to get away from Emacs, but I did not succeed :( </div><div><br></div><div>So now I gave up. Mainly because in general you may find a programming language specific extension for any language easily.</div><div><br></div><div>For Ada programming (which I do for a living at the moment) it is a complete working environment with lots of templates and with gdb and all.</div><div><br></div><div>For Oberon it is less advanced, it only has a few (3) skeletons. But it has auto indent and syntax coloring.</div><div>And I know the editor, so it works for me.</div><div><br></div><div>All these things are implemented in emacs as lisp packages on top of the (very) basic editor / lisp interpreter.</div><div>You might not agree with that basic concept, but there is no denying that it has proven itself.</div><div>There is a feature for everything and if you want something extra then just delve into the lisp part.</div><div><br></div><div>So I used one of the basic features of most language extentions. Emacs reads the first and the last few lines of any file on loading and decides if there are special actions required.</div><div>In this specific case I set the character coding (mac-roman) so emacs understands Oberons newline sequence.</div><div>and the tab distance (2 characters) so it looks like a Wirth original in emacs but with syntax colours.</div><div><br></div><div>Unfortunately emacs out of the box does not handle the Oberon starter and trailer very well, (needs more lisp) so I just strip them, and when I open / save in Oberon they will automatically be added again.</div><div><br></div><div>Hope this explains my doings.</div><div><br></div><div>j.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 29, 2015 at 5:12 AM, eas lab <span dir="ltr">&lt;<a href="mailto:lab.eas@gmail.com" target="_blank">lab.eas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve used emacs previously [wily (public domain) is a fraction of the size<br>
and mouse based, admitted to be a &#39;copy&#39; of ETHO by the plan9 designers;<br>
it&#39;s a killer utility for me]; but I can&#39;t see what you&#39;re doing.<br>
<br>
If it&#39;s &lt;programming via template&gt; I strongly approve.<br>
<br>
IMO, especially with the &lt;clean Algol family&gt; syntax, the<br>
only tokens which you should not pick-off-a-menu are your<br>
original-chosen identifiers.<br>
<br>
== Chris Glur.<br>
<div><div class="h5"><br>
<br>
<br>
On 7/5/15, Jan de Kruyf &lt;<a href="mailto:jan.de.kruyf@gmail.com">jan.de.kruyf@gmail.com</a>&gt; wrote:<br>
&gt; Here is a little something to be able to edit source-files in Emacs.<br>
&gt; (No doubt there is a Vi version also)<br>
&gt;<br>
&gt; open any source file and strip the cruft at the beginning and the end of<br>
&gt; the file<br>
&gt; (otherwise the file will not edit anymore in Oberon)<br>
&gt;<br>
&gt; and add beyond the end of the source code: (BTRees.Mod as an example)<br>
&gt; -----<br>
&gt; .<br>
&gt; .<br>
&gt; BEGIN<br>
&gt; Init()<br>
&gt;      END BTrees.<br>
&gt;      (* Local Variables:  *)<br>
&gt;      (* coding: mac-roman *)<br>
&gt;      (* tab-width: 2      *)<br>
&gt;      (* End:              *)<br>
&gt;<br>
&gt; ------------<br>
&gt;<br>
&gt; the first time you will have to set the coding temporarily to mac-roman<br>
&gt; yourself, or add this stanza under Oberon.<br>
&gt;<br>
&gt; Thereafter it will all be done automatically, just remember to strip the<br>
&gt; cruft before you save in Emacs.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; j.<br>
&gt;<br>
<br>
</div></div>--<br>
<a href="mailto:Oberon@lists.inf.ethz.ch">Oberon@lists.inf.ethz.ch</a> mailing list for ETH Oberon and related systems<br>
<a href="https://lists.inf.ethz.ch/mailman/listinfo/oberon" rel="noreferrer" target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/oberon</a><br>
</blockquote></div><br></div>