On Tue, Jun 28, 2011 at 2:00 PM, Sylvain <sylvain@kalache.fr> wrote:
> Hi guys,
>
> I''m trying to install the syntax highlighting on emacs for Puppet.
> I''m using the configuration files provide on
> http://projects.reductivelabs.com/repositories/browse/puppet/ext/emacs
>
> When I open a .pp file I got this error:
> File mode specification error: (void-function puppet-mode)
>
Hi
The .el files must be in the library path or you can do something like this
in your ~.emacs file
;; Local Library Path
(add-to-list ''load-path "~/path/to/your/el/files")
then I autoload it with in my ~.emacs, that is almost the same as the
puppet-mode-init.el
;; Puppet mode
(autoload ''puppet-mode "puppet-mode" "Puppet Mode."
t)
(add-to-list ''auto-mode-alist ''("\\.pp\\''"
. puppet-mode))
(add-to-list ''interpreter-mode-alist ''("puppet" .
puppet-mode))
Hope that helps.
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>
--
Tony
http://blog.tonyskapunk.net
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.