I'm new to Emacs. I found many emacs plugins are released as an .el file. I'm not sure how to install them. Can I just put them in my emacs installation directory?
In most cases, you need the emacs-$VERSION-x86_64-installer.exe , where version is currently 27.2. This file contains a 64-bit build of Emacs with dependencies as an installer package. Download this file and run the program to install Emacs on your system. You can run Emacs like any other Windows software.
Within Emacs, ~ at the beginning of a file name is expanded to your HOME directory, so you can always find your . emacs file by typing the command C-x C-f ~/. emacs .
emacs file or . emacs. d folder is in the c:/Users/username/AppData/Roaming .
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)
In any case, you should consult the documentation of the package you are trying to install on which one you should use.
If you are unsure where your ~
directory is, you may see it by typing C-x d ~/
and pressing Enter
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With