all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Disabling VHDL template
@ 2013-01-09 19:13 ryan
  2013-01-09 21:33 ` Ken Goldman
  2013-01-09 23:14 ` Peter Dyballa
  0 siblings, 2 replies; 4+ messages in thread
From: ryan @ 2013-01-09 19:13 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I just installed ghdl on my centos machine, and I am trying to use emacs to write vhdl.  However, everytime I use a key word like 'use' or 'entity' emacs goes into some kind of template mode.  I did some reading on the emacs FAQ, and figured I should be able to disable it by removing some lines in the .emacs file.  However, the only .emacs file i can find is in root's directory, and it doesn't seem to contain anything related to templates (it is almost bare).  I can't find anything else on google either, so I am pretty lost at this point.

Can anyone point me in the right direction for disabling the vhdl templates?

Thanks

-Ryan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Disabling VHDL template
  2013-01-09 19:13 ryan
@ 2013-01-09 21:33 ` Ken Goldman
  2013-01-09 23:14 ` Peter Dyballa
  1 sibling, 0 replies; 4+ messages in thread
From: Ken Goldman @ 2013-01-09 21:33 UTC (permalink / raw)
  To: help-gnu-emacs

On 1/9/2013 2:13 PM, ryan wrote:
> Hello,
>
> I just installed ghdl on my centos machine, and I am trying to use
> emacs to write vhdl.  However, every time I use a key word like 'use'
> or 'entity' emacs goes into some kind of template mode.  I did some
> reading on the emacs FAQ, and figured I should be able to disable it
> by removing some lines in the .emacs file.  However, the only .emacs
> file i can find is in root's directory, and it doesn't seem to
> contain anything related to templates (it is almost bare).  I can't
> find anything else on Google either, so I am pretty lost at this
> point.
>
> Can anyone point me in the right direction for disabling the vhdl
> templates?

My guess is that there's some global file in the emacs tree that sets 
files with the .vhdl extension to a vhdl mode.

The Linux install is often in /usr/share/emacs.

Alternatively, perhaps you can override it.  Something like (untested):

(setq auto-mode-alist
       (append '(
		("\\.vhdl$"	  . fundamental-mode)
		) auto-mode-alist))

But, I have to say, I found vhdl mode to be a real time saver.









^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Disabling VHDL template
       [not found] <mailman.17008.1357759481.855.help-gnu-emacs@gnu.org>
@ 2013-01-09 22:49 ` Peter
  0 siblings, 0 replies; 4+ messages in thread
From: Peter @ 2013-01-09 22:49 UTC (permalink / raw)
  To: gnu.emacs.help; +Cc: help-gnu-emacs

I don't use VHDL mode - but you made me curious :-)

Try (from the menu) VHDL -> Options -> Mode -> Electric Mode

When I "tick" this I then get the (clumsy - skeleton type mode unless I miss my guess) template "interference" that you are experiencing. If I "untick" it then it all "goes away".

Good luck - and if you want to use a template system there are definitely less "intrusive" systems than the major mode author has built into this one! 

Regards
Peter



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Disabling VHDL template
  2013-01-09 19:13 ryan
  2013-01-09 21:33 ` Ken Goldman
@ 2013-01-09 23:14 ` Peter Dyballa
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2013-01-09 23:14 UTC (permalink / raw)
  To: ryan; +Cc: help-gnu-emacs


Am 09.01.2013 um 20:13 schrieb ryan:

> However, the only .emacs file i can find is in root's directory, and it doesn't seem to contain anything related to templates (it is almost bare).

How did you become root? Is it possible that an inherited variable points to your own ~/.emacs file?

(I am launching an extra Emacs with 'sudo -H env ... emacs ... '.)

--
Greetings

  Pete

Basic, n.:
	A programming language. Related to certain social diseases in that those who have it will not admit it in polite company.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-09 23:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.17008.1357759481.855.help-gnu-emacs@gnu.org>
2013-01-09 22:49 ` Disabling VHDL template Peter
2013-01-09 19:13 ryan
2013-01-09 21:33 ` Ken Goldman
2013-01-09 23:14 ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.