🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.vhdl
Article #477

Re: Custom indentation in Emacs Vhdl-mode

#477
From: Mike Treseler
Date: Fri, 12 Jan 2007 17:51
20 lines
1799 bytes
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.
)
Technical Details
Message-ID: <50q047F1haip3U1@mid.individual.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1168527687.560869.42360@k58g2000hse.googlegroups.com> <3k2fq2l3lgvcfe7t45o1binaef0872p5ok@4ax.com> <50polbF1grf3jU1@mid.individual.net> <1168621500.477449.295080@l53g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1089ad,6f128e08e545a086
X-Google-Thread: 103b8b,a3b884cc1c70814
X-Google-Attributes: gid1089ad,gid103b8b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Mike Treseler <mike_treseler@comcast.net>
Newsgroups: comp.lang.vhdl,comp.gnu.emacs.help,gnu.emacs.help
Subject: Re: Custom indentation in Emacs Vhdl-mode
Date: Fri, 12 Jan 2007 09:51:03 -0800
Lines: 20
Message-ID: <50q047F1haip3U1@mid.individual.net>
References: <1168527687.560869.42360@k58g2000hse.googlegroups.com>   <3k2fq2l3lgvcfe7t45o1binaef0872p5ok@4ax.com>   <50polbF1grf3jU1@mid.individual.net> <1168621500.477449.295080@l53g2000cwa.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: individual.net J9pIzWAyMyDjOEhgx5rj0AKemyORUmgyULjMc1iEDZOp9qBLqL
User-Agent: Thunderbird 1.5.0.9 (X11/20060911)
In-Reply-To: <1168621500.477449.295080@l53g2000cwa.googlegroups.com>