mercurial.el autoload

Neal Becker ndbecker2 at gmail.com
Wed Apr 9 12:34:50 CDT 2008


Shun-ichi GOTO wrote:

> 2008/4/9 Neal Becker <ndbecker2 at gmail.com>:
>> I'm having trouble autoloading mercurial.el.  I'm using:
>>  (autoload 'hg-mode "mercurial" "HG mode." t)
> 
> The function "hg-mode" is not a command (= interactive function).
> So you cannot invoke it via M-x.
> 
> To use mercurial.el, what you should do is simply load it in .emacs like:
>   (load "mercurial")
> It hooks within "find-file-hooks" and it works in background on visitting
> file and it also install global key bindings (e.g. C-c h c for hg-commit)
> 

Thanks.

The objective here is to add a file to system-wide site-init.  I guess just
(load "mercurial") rather than trying to autoload it is the best approach.



More information about the Mercurial-devel mailing list