unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "haws" <hugows@gmail.com>
Subject: Re: Custom indentation in Emacs Vhdl-mode
Date: 12 Jan 2007 09:58:27 -0800	[thread overview]
Message-ID: <1168624707.414984.208870@l53g2000cwa.googlegroups.com> (raw)
In-Reply-To: <50q047F1haip3U1@mid.individual.net>

Ok, thanks! I guess that solution will do!

I thought I'd have to change the syntactic meaning of "use", but
vhdl-mode is kinda complicated (20k lines), so I probably don't want to
mess there anyway :)

Mike Treseler escreveu:

> Hugo wrote:
> > So, any ideas on how to indent the use's relative to "library ieee" ? I
> > know it's pretty silly thing...
> >
> > The only way I know to accomplish that would be a post-beautifier
> > function that fixes those lines.. but this sounds rather ugly... :)
>
> Since I hijacked your thread, here's an idea.
>
> Yes. If you look at the source for vhdl-beautify-buffer you will
> see that it is pretty tightly wound. I would write a
> wrapper function called vhdl-align-use that would
> call beautify then find the first USE, insert three spaces, etc.
> Something like:
>
> (defun align-use () "Indent vhdl use clauses"
>   (vhdl-beautify-buffer)
>   (beginning-of-buffer)
> ;;code to search for "use" lines and insert three spaces goes here.
> )

  reply	other threads:[~2007-01-12 17:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1168527687.560869.42360@k58g2000hse.googlegroups.com>
     [not found] ` <3k2fq2l3lgvcfe7t45o1binaef0872p5ok@4ax.com>
     [not found]   ` <50polbF1grf3jU1@mid.individual.net>
     [not found]     ` <1168621500.477449.295080@l53g2000cwa.googlegroups.com>
2007-01-12 17:51       ` Custom indentation in Emacs Vhdl-mode Mike Treseler
2007-01-12 17:58         ` haws [this message]
     [not found]     ` <51sfeuF1m0akrU1@mid.individual.net>
     [not found]       ` <uhcud3mad.fsf@trw.com>
     [not found]         ` <1169822919.212235.9970@m58g2000cwm.googlegroups.com>
2007-01-26 17:54           ` Mike Treseler
2007-01-11 15:01 haws

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1168624707.414984.208870@l53g2000cwa.googlegroups.com \
    --to=hugows@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).