Installing Haskell-mode of Emacs

Source: Internet
Author: User
Tags gz file

Emacs does not include Haskell-mode by default. Therefore, it is not automatically highlighted or indented when writing the. HS file. You need to install Haskell-mode by yourself. The installation method is very simple.

1 download Haskell-Mode

Https://github.com/haskell/haskell-mode

2. decompress the haskell-haskell-mode-2_8_0-140-g77d0373.tar.gz file.

Tar-xzf haskell-haskell-mode-2_8_0-140-g77d0373.tar.gz-C ~ /. Emacs. d/

So ~ The/. emacs. d directory contains a file directory in the compressed package and is renamed to Haskell-mode because the original name is too ugly ..

3. Modify the Emacs configuration file

(Note: The Emacs configuration file is ~ /. Emacs; my plug-ins are all under the. emacs. d directory)

In ~ /. Add the following to the emacs file:

(Load "~ /. Emacs. d/Haskell-mode/Haskell-site-file ")

Of course, this is only the basic function of Haskell-mode. If more configurations are useless, you will not need to mention it.

After the above work is completed, the file editing. HS using Emacs will automatically enter Haskell-mode and enable highlight and indent.

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.