Mail Archives: geda-user/2012/10/26/05:30:48
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Dave McGuire <mcguire AT neurotica DOT com> writes:
> On 10/24/2012 06:03 AM, Rupert Swarbrick wrote:
>>> Has Emacs a PCB mode? Where can I download that plugin?
>>=20
>> I just use fundamental-mode. The only sad bit is that then the TAB
>> key doesn't indent in the way I'd like.
>>=20
>> That said, I've been slightly inspired: when I next get some free
>> time, maybe I'll try to hack a useful one together. Can you think
>> of useful features other than syntax highlighting and electric
>> indentation?
>>=20
>> I was thinking some sort of templatey "Insert a pin" command, with=20
>> prompts for the various parameters, so that I didn't have to
>> remember what order they come in. Similarly for pads. Would anyone
>> but me use something like this?
>
> I would! I really like the prompting for parameters idea as well.
Right, I'm announcing this now to force myself to keep working on it,
but there's a minimal implementation up now at
https://github.com/rswarbrick/pcb-mode
When it's more complete and if anyone finds this useful I'll happily
"upstream it" and host it with you guys instead.
So far, it does some syntax highlighting and indentation. There are also
a couple of templates for adding Element, ElementLine etc., tied in with
the abbrev system.
It works on Linux and presumably should work on Windows/Mac. I'm not
sure whether XEmacs has tempo, the templating system I'm using, so it
might take some work to port to that.
What I want to add:
- Run PCB to view the current file (and make sure that works on
Windows too. Sigh)
- Imenu integration, so that Emacs can let you jump to components by
refdes etc.
- Some automatic pad calculation ("Please give me a pad covering the
following rectangle..."). Useful for footprints, and I've spent far
too long working these out with bits of paper.
More vague:
- Automatic mm/mil conversion routines would be nice, but I don't know
what a good interface would be. Ideas?
- I'd like a sort of "polyline" interface. So the user gives a list of
points and the mode generates ElementLine objects going through them
in order. Useful for silk outlines.
- In that vein, I'd probably also add a rectangle generator, to avoid
having to do the width/height <-> position calculations.
Does anyone else have suggestions for things that would be useful in
this mode? I sort of imagine that it will mostly be useful for working
on footprints. Is there any other boring calculation you find yourself
doing over and over?
Rupert
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iJwEAQECAAYFAlCKVWYACgkQRtd/pJbYVoYh0QP/XXMuVZVOSNshgtLZ21lUo0Lo
72Q7WMtmgQz5uvQHu2SmzKV+X173022xTHN01wBlzWkoMKF+UOCEVIVOt2MvVw1I
iEuu3PQri43yyeC1GAk5YoJRKOOT4vPPVZVPXlB2ORUBVNUZm92m7+UBxQVvA/MG
u9XCPF6j+DTWVNrBJvY=
=HeIH
-----END PGP SIGNATURE-----
--=-=-=--
- Raw text -