Install Emacs in Windows

Source: Internet
Author: User

1. Download and install
Download 1.1
Download the Windows version of Emacs from the official website (http://ftp.gnu.org/pub/gnu/emacs/windows/), the latest version is 24.3, you can download the emacs-24.3-bin-i386.zip.
1.2 Installation
Put the above compressed file to the desired place to install, such as D: \ opensource, decompress the file to the current directory, so there is Bin, TEC, under D: \ opensource \ emacs-24.3, info and other directories.
Install addpm.exe In the BIND folder. After installation, generate the GNU Emacs/Emacs link from the menu. Click this link to start Emacs. You can also directly double-click runemacs.exe in the folder to start.
2. Environment Configuration
By default, the Emacs configuration file in Windows is c: \ Users \ <username> \ appdata \ roaming. This directory is very deep, and the appdata directory is hidden by default. The most important thing is that if the system disk encounters a problem, the previous. emacs configuration file and. El extension must be reconfigured and downloaded. You can reconfigure the default Emacs directory as follows.
Start Emacs and change the settings in the option menu. For example, cancel ignore case for search and click Save options. This step is not redundant, because by default, emacs will not generate the. emacs configuration file and. emacs. d directory at startup. The. emacs directory generated in this step is still under c: \ Users \ <username> \ appdata \ roaming, because we have not made any other settings to move it ~
Next, go to the key step. Open the c: \ Users \ <username> \ appdata \ roaming \. emacs configuration file and change the content

(Load-file "D:/opensource/emacs-24.3/. emacs ")

(Note that "/" is used instead of "\"; otherwise, emacs cannot be correctly identified.) This configuration means that Emacs loads C at startup: /users/<username>/appdata/Roaming /. emacs configuration file, and the file loads another D:/opensource/emacs-24.3 /. emacs configuration file. In this way, the configuration transfer is achieved ~ Now, you do not need to enter the redundant path C:/users/<username>/appdata/Roaming/. emacs!

In the previous step, we used the Emacs configuration file (load-file ...) the configuration has been directed to D:/opensource/emacs-24.3 /. if Emacs is finished, copy it. put the emacs file in D:/opensource/emacs-24.3. ). Then open D:/opensource/emacs-23.2/. emacs and add the following configuration at the beginning:
(Setenv "home" "D:/opensource/emacs-24.3 ")
(Setenv "path" "D:/opensource/emacs-24.3 ")
; Set the default file path
(Setq default-directory "~ /")
Well, yes. Here we have defined a new path for home path and so on ~~~ You should understand it here, that is, transfer the configuration.
Now we can take D:/opensource/emacs-24.3 as the home of Emacs.
3. Configuration File
There are two methods to configure the file:
3.1 for more information, see http://club.topsage.com/thread-2252500-1-1.html.
3.2 have a higher pursuit, you can follow the footsteps of the ox, follow the steps!

* Reference
1. the best method to install Emacs in Windows: http://club.topsage.com/thread-2253070-1-1.html
2. One year to become Emacs master (use the editor like God) http://blog.csdn.net/redguardtoo/article/details/7222501

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.