help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie question: How do I make emacs load my own mode?


From: Sebastian Tennant
Subject: Re: newbie question: How do I make emacs load my own mode?
Date: Mon, 05 Nov 2007 13:39:35 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Quoth David E <david.elixmann@gmx.net>:
> The file optisim.el is still in the /emacs/lisp directory, but when I enter
> "M-x optisim-mode", emacs says "[No Match]". 

Ensure #/emacs/lisp is still in your load path:

  M-x describe-variable load-path RET

and if not, add it in your ~/.emacs:

  (add-to-list 'load-path "~/emacs/lisp")

Then add an autoload call in your ~/.emacs:

  (autoload 'optisim-mode "optismim.el" "My optisim mode" t)

Sebastian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]