Emacs Usage Record

Source: Internet
Author: User

On different computers are configured with Emacs, after changing the computer need to reconfigure again, some of the steps are not very clear, so write down so that the computer after a reference.

Table of Contents
    • 1 configuration. EMACS.D Directory
    • 2 configuration. emacs
Configure the. EMACS.D Directory

Inadvertently saw a blog post, emacs configuration is best to copy the Big God, using emacs Many of the great gods, their configuration is also better, referring to Eric Schulte's Emacs-starter-kit configuration. First git down and put it underneath the. EMACS.D directory.

Configure. Emacs

First add the. emacs.d to the Load-path, initialize init, and add the path to the package manager.

(Add-to-list ' Load-path "~/.EMACS.D") (Load "Init.el") (Setq package-archives      ' ("GNU"         . "Http://elpa.gnu.org/packages/")        ("org")         . "http://orgmode.org/elpa/")        ("Melpa")       . "Http://melpa.org/packages/")        ("Marmalade")   . "http://marmalade-repo.org/packages/"))) (Package-initialize)

Add a few plug-ins evil Smex and Org-mode write Cnblogs plug-in, the first two plug-ins can be used directly package-install, the latter is the download plug-in, added to Emacs Load-path. Reference files: Write Cnblogs blog with Emacs Org-mode

(Require ' evil) (Evil-mode 1) (Require ' smex); Not needed if Package.el (smex-initialize); Can be omitted. This might cause a (minimal) delay, when Smex was auto-initialized on its first                  run. ( Global-set-key (kbd "m-x") ' Smex ' (Global-set-key (kbd "m-x") ' smex-major-mode-commands ');; This is the your old m-x. (Global-set-key (kbd "c-c c-c m-x") ' Execute-extended-command ') (Add-to-list ' Load-path "~/site-lisp") (Require ' cnblogs) (Add-hook ' Org-mode-hook (Lambda () (                           Cnblogs-minor-mode)))

Emacs Usage Record

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.