[Emacs] basic configuration file for Emacs for Windows [reprinted]

Source: Internet
Author: User
; Set the load path (setq load-path (Cons "~ /. Emacs. d/elisp "load-path); the buffer name is displayed in the title bar (setq frame-title-format" Emacs @ % B ");; set useful personal information (setq user-full-name "huzhifei") (setq user-mail-address "WisdomFusion@gmail.com"); open tabbar (require 'tabbar) (tabbar-mode); color scheme (require 'color-theme) (color-theme-Robin-hood); setq visible-bell t );; tool-bar-mode-1; display-time; line number (setq column-number-mode t );; Show-Paren-mode t; Increase the kill ring to prevent document rollback (setq kill-ring-max 100 );; set fill-column to 60 (setq default-fill-column 60); do not use tab indent (setq-default indent-Tabs-mode nil) (setq default-tab-width 4); change yes or no to Y/n at the time of inquiry, reduce input (fset 'Yes-or-no-p' y-or-n-P );; set sentence-end to recognize Chinese Punctuation Marks (setq sentence-end "\ ([.!?] \\| ...... \\| [.?!] [] \ "')}] * \ ($ \ | [\ T] \) [\ t \ n] *") (setq sentence-end-double-space nil); you can recursively use minibuffer (setq enable-recursive-minibuffers T); to prevent page beating during Page scrolling, scroll-margin 3 (setq scroll-margin 3 scroll-Conservatively 10000 );; set the default major mode to text-mode (setq default-Major-mode 'text-mode); when matching the brackets, the brackets on the other side are displayed, instead of jumping to another bracket (show-Paren-mode t) (setq show-Paren-style 'parentheses); when the cursor approaches the mouse pointer, let the mouse pointer automatically open, do not block the line of sight (mouse-avoidance-mode 'animate); Enable Emacs to directly open and display the image (auto-image-file-mode );; syntax highlighted (Global-font-lock-mode t); highlight the area to be copied (transient-mark-mode t );; enable some disabled functions by default (put 'set-goal-column 'disabled nil) (put 'narrow-to-region' disabled nil) (put 'upcase-region' disabled nil) (put 'downcase-region' disabled nil) (put 'latex-hide-Environment 'disabled nil );; setq version-control T (setq kept-New-versions 3) (setq Delete-old-versions t) (setq kept-old-versions 2) (setq Dired-kept-versions 1); if you do not want to automatically back up the file, you can comment out the above configuration; open the following configuration :;;;; backup files are not automatically generated; (setq-default make-backup-files nil); enables d to recursively copy and delete directories (setq Dired-recursive-copies 'top) (setq Dired-recursive-deletes 'top); Chinese configuration (set-language-Environment 'Chinese-GB) (set-keyboard-coding-system 'euc-CN) (set-clipboard-coding-system 'euc-CN) (set-terminal-coding-system 'euc-CN) (set-buffer-file-coding-system 'euc-CN) (set-selection-coding-system 'euc-CN) (modify-coding-system-alist 'process "*" 'euc-CN) (setq default-process-coding-system' (EUC-CN. EUC-CN) (setq-default pathname-coding-system 'euc-CN)
The tabbar. El and color-theme.el Emacs extensions are used in the configuration, as shown in the attachment
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.