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