unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* installing emacs package on windows
@ 2009-08-01 15:04 amolaggarwal
  2009-08-01 16:08 ` Pascal J. Bourguignon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: amolaggarwal @ 2009-08-01 15:04 UTC (permalink / raw)
  To: help-gnu-emacs

My emacs version is 22.3.1 . I have created init file in ~/.emacs.d/
init.cl(user application data folder instead of home directory) . I
want to load another package called init-auto-complete.el through my
init file . I have put this package in .emacs.d directory but i am
unable to load this package from init file using (require 'init-auto-
complete.el). Kindly help.


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

* Re: installing emacs package on windows
  2009-08-01 15:04 installing emacs package on windows amolaggarwal
@ 2009-08-01 16:08 ` Pascal J. Bourguignon
  2009-08-01 16:39 ` Martin
  2009-08-01 21:51 ` Xah Lee
  2 siblings, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2009-08-01 16:08 UTC (permalink / raw)
  To: help-gnu-emacs

amolaggarwal <amolaggarwal@gmail.com> writes:

> My emacs version is 22.3.1 . I have created init file in ~/.emacs.d/
> init.cl(user application data folder instead of home directory) . I
> want to load another package called init-auto-complete.el through my
> init file . I have put this package in .emacs.d directory but i am
> unable to load this package from init file using (require 'init-auto-
> complete.el). Kindly help.

Type: M-: (info "(emacs)Init File") RET
(assuming you have the info documentation for emacs installed).

The usual init file is: ~/.emacs 

If there is no ~/.emacs or ~/.emacs.el, then emacs tries to load
~/.emacs.d/init.el

The various components of emacs may store specific files in
~/.emacs.d, so I would avoid to put my files there.

To understand how require works, type: C-h f require RET
There, it is explained how the feature symbol is mapped to a file
name, when you don't specifiy the file name in the arguments of
require.

You may also directly load to load a specific file. 
Type: C-h f load RET to see how it works.  There are references to
several variables you may set to customize its behavior, so that you
may avoid giving the full pathname in the load argument.

-- 
__Pascal Bourguignon__


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

* Re: installing emacs package on windows
  2009-08-01 15:04 installing emacs package on windows amolaggarwal
  2009-08-01 16:08 ` Pascal J. Bourguignon
@ 2009-08-01 16:39 ` Martin
  2009-08-01 21:51 ` Xah Lee
  2 siblings, 0 replies; 4+ messages in thread
From: Martin @ 2009-08-01 16:39 UTC (permalink / raw)
  To: help-gnu-emacs


amolaggarwal writes:

> My emacs version is 22.3.1 . I have created init file in ~/.emacs.d/
> init.cl(user application data folder instead of home directory) . I
> want to load another package called init-auto-complete.el through my
> init file . I have put this package in .emacs.d directory but i am
> unable to load this package from init file using (require 'init-auto-
> complete.el). Kindly help.

Hi,

move init-auto-complete.el to one of the directories of the load path
e.g. site-lisp.

Martin
--
parozusa at web dot de 


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

* Re: installing emacs package on windows
  2009-08-01 15:04 installing emacs package on windows amolaggarwal
  2009-08-01 16:08 ` Pascal J. Bourguignon
  2009-08-01 16:39 ` Martin
@ 2009-08-01 21:51 ` Xah Lee
  2 siblings, 0 replies; 4+ messages in thread
From: Xah Lee @ 2009-08-01 21:51 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 1, 8:04 am, amolaggarwal <amolaggar...@gmail.com> wrote:
> My emacs version is 22.3.1 . I have created init file in ~/.emacs.d/
> init.cl(user application data folder instead of home directory) . I
> want to load another package called init-auto-complete.el through my
> init file . I have put this package in .emacs.d directory but i am
> unable to load this package from init file using (require 'init-auto-
> complete.el). Kindly help.

is “~/.emacs.d/” in your load-path? You can check by typing Alt+x
describe-variable load-path.

Also, “require” is the wrong function to call. You should use load-
file, load, or autoload. For some detail, see:

• How To Install Emacs Packages
  http://xahlee.org/emacs/emacs_installing_packages.html

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-01 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-01 15:04 installing emacs package on windows amolaggarwal
2009-08-01 16:08 ` Pascal J. Bourguignon
2009-08-01 16:39 ` Martin
2009-08-01 21:51 ` Xah Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).