Martin Thompson <> writes:
> Mike Treseler <> writes:
>
>> Mike Treseler wrote:
>>
>>> I'll do such an emacs function
>>
>>
>> (defun vhdl-ieee () "Insert ieee use clauses"
>> (interactive)
>> (insert "
>> library ieee;
>> use ieee.std_logic_1164.all;
>> use ieee.numeric_std.all;
>> "))
>
> 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).
Doh! What's actually required is this (after Mike's bit):
(add-hook 'vhdl-mode-hook
(lambda()
(define-key vhdl-template-map "\C-pi" 'vhdl-template-package-ieee)))
I'm sure a proper elisper would have a better way of doing it...
Cheers,
Martin
--
TRW Conekt - Consultancy in Engineering, Knowledge and Technology
http://www.conekt.net/electronics.html