Anoop G <[email protected]> writes:

> Hi All,
>
> I read the README.md file provided in
>   http://philjackson.github.com/magit.  and found that

with very recent version of Emacs, M-x install-package magit should just
work (I believe that this is only the case for development version of
Emacs).

>
>    make && *sudo make install* will install the magit.el in
>  /usr/local/share/emacs/site-lisp this required root access ,but how I can
>  install magit in my home directory (/home/anoop/.emacs.d/site-
> lisp) *without  root permission* ,If I copy magit.el to
>  /home/anoop/.emacs.d/site-lisp and

With recent version of magit, there is several .el files. You need to
copy all of them in a directory in you load-path (say
/home/anoop/.emacs.d/site-lisp/magit, but you can put them directly into
/home/anoop/.emacs.d/site-lisp/, the problem with the latter is that if
you install several emacs package, it will be a mess to deinstall one of
them).

Then you have to be sure that this directory is in your load path.

Add

  (add-to-list 'load-path "/home/anoop/.emacs.d/site-lisp/magit")
  (require 'magit)

to your load-path. (notice that there is only one ', there is nothing
after magit in the require line).

>  put (require 'magit' ) in my .emacs  will it work ?.

Yes. Well you have to verify that  
-- 
Rémi Vanicat

Reply via email to