For a specific package
Where to place the el file
After placing it, say
myplugin.el
to your ~/.emacs.d/
directory, add the following in your .emacs
file:(add-to-list 'load-path "~/.emacs.d/")
(load "myplugin.el")
Also, in many cases you would need the following instead of the second line:
(require 'myplugin)
for normal emacs packages
add to init.el(when (>= emacs-major-version 24)
(require 'package)
(add-to-list
'package-archives
'("melpa" . "http://melpa.org/packages/")
t)
(package-initialise))
In emacs type:
MetaX list-packages
.