Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a Emacs plugin (many times it's a .el file) on Windows platform?

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?

like image 518
Just a learner Avatar asked Jun 19 '11 04:06

Just a learner


People also ask

Is Emacs usable on Windows?

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.

How to find Emacs HOME directory?

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 .

Where is the Emacs config file in Windows?

emacs file or . emacs. d folder is in the c:/Users/username/AppData/Roaming .


1 Answers

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.

like image 142
loudandclear Avatar answered Sep 20 '22 12:09

loudandclear