Article View: comp.lang.vhdl
Article #476Re: Custom indentation in Emacs Vhdl-mode
From: Mike Treseler
Date: Fri, 26 Jan 2007 17:54
Date: Fri, 26 Jan 2007 17:54
26 lines
1891 bytes
1891 bytes
HS wrote:
> My approach is a little different... I have a vhdl file template that is
> inserted when I run "Insert header", and it already contains ieee
> clauses, entity and architecture pairs, etc.
>>> Mike Treseler wrote:
>>> (defun vhdl-ieee () "Insert ieee use clauses"
>>> (interactive)
>>> (insert "
>>> library ieee;
>>> use ieee.std_logic_1164.all;
>>> use ieee.numeric_std.all;
>>> "))
> On 26 jan, 11:17, Martin Thompson wrote:
>> And add this:
>> (define-key vhdl-template-map "\C-pi" 'vhdl-ieee)
>> to add it to the VHDL-template keymappings, (so you do C-c C-t C-p i
>> to insert it). Now I need to figure out how to get it onto the
>> menu...
Thanks to HS and Martin for the vhdl-mode tips.
Looks like emacs wins round one 3 to nil :)
-- Mike Treseler
Technical Details
Message-ID:
<51utinF1l6u40U1@mid.individual.net>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1168527687.560869.42360@k58g2000hse.googlegroups.com> <3k2fq2l3lgvcfe7t45o1binaef0872p5ok@4ax.com> <50polbF1grf3jU1@mid.individual.net> <51sfeuF1m0akrU1@mid.individual.net> <uhcud3mad.fsf@trw.com> <1169822919.212235.9970@m58g2000cwm.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!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,gnu.emacs.help Subject: Re: Custom indentation in Emacs Vhdl-mode Date: Fri, 26 Jan 2007 09:54:31 -0800 Lines: 26 Message-ID: <51utinF1l6u40U1@mid.individual.net> References: <1168527687.560869.42360@k58g2000hse.googlegroups.com> <3k2fq2l3lgvcfe7t45o1binaef0872p5ok@4ax.com> <50polbF1grf3jU1@mid.individual.net> <51sfeuF1m0akrU1@mid.individual.net> <uhcud3mad.fsf@trw.com> <1169822919.212235.9970@m58g2000cwm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net hV8/Rjnw3UicWvHjMB8KLQL4E9tW9iAunrfvDwpBpLUh0MLzIa User-Agent: Thunderbird 1.5.0.9 (X11/20060911) In-Reply-To: <1169822919.212235.9970@m58g2000cwm.googlegroups.com>