My first Emacs configuration

Source: Internet
Author: User

~/.emacs.d/init.el

;; Turn on the org mode.
(setq default-major-mode ' Org-mode)
;;( Add-to-list ' Auto-mode-alist ' ("\\.org\\ '". Org-mode))

;; Syntax highlighting
(Global-font-lock-mode t)

;; The y/n represents yes/no
(Fset ' yes-or-no-p ' y-or-n-p)

;; Show parentheses Match
(Show-paren-mode t)
(setq show-paren-style ' parentheses)

;; Display time in the following format
(Display-time-mode 1)

;; Hide Tool-bar
(tool-bar-mode-1)
;;( SCROLL-BAR-MODE-1)
;;( TOOLTIP-MODE-1)
;;( MENU-BAR-MODE-1)

;; Show line Numbers
(Global-linum-mode)
(setq Column-number-mode T)

;; Set default tab width to 4
(Setq-default Indent-tabs-mode Nil)
(Setq-default tab-width 4)

;; Support for Emacs and external program pasting
(setq X-select-enable-clipboard T)

;; In the title bar you are prompted where you are currently
(setq frame-title-format "%[email protected]%f")

;; ORG Recommended configuration
(Global-set-key "\c-cl" ' Org-store-link)
(Global-set-key "\C-CC" ' Org-capture)
(Global-set-key "\c-ca" ' Org-agenda)
(Global-set-key "\C-CB" ' Org-iswitchb)

;; Add an MPLS source
(Require ' package)
(Add-to-list ' package-archives ' ("Melpa"). "http://melpa.org/packages/") t)

;; Set Spacemacs Theme
(Add-to-list ' Load-path "~/.emacs.d/elpa/spacemacs-theme-20151106.1501")
(Require ' Spacemacs-common)
(Deftheme spacemacs-dark "Spacemacs theme, the Dark version")
(Deftheme spacemacs-light "Spacemacs theme, the light version")
(Create-spacemacs-theme ' Dark ' Spacemacs-dark)
(Provide-theme ' Spacemacs-dark)

;; Load Evil
(Add-to-list ' Load-path "~/.emacs.d/elpa/evil-20151109.829")
(Require ' evil)
(Evil-mode 1)

;; Load Markdown
(AutoLoad ' Markdown-mode "Markdown-mode"
"Major mode for editing Markdown files" T)
(Add-to-list ' auto-mode-alist ' ("\\.text\\ '". Markdown-mode))
(Add-to-list ' auto-mode-alist ' ("\\.markdown\\ '". Markdown-mode))
(Add-to-list ' auto-mode-alist ' ("\\.md\\ '". Markdown-mode))

;; Loading tomato clock
(Add-to-list ' Load-path "~/.emacs.d/elpa/pomodoro-20150716.1046")
(Require ' Pomodoro)
(Pomodoro-add-to-mode-line)

;; Load window-numbering
(Add-to-list ' Load-path "~/.emacs.d/elpa/window-numbering-20150228.1247")
(Require ' window-numbering)
(Window-numbering-mode 1)

;; Load hybrid
(Add-to-list ' Load-path "~/.emacs.d/elpa/hybrid-mode")
(Require ' Hybrid-mode)
(Hybrid-mode 1)

My first Emacs configuration

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.