Emacs Configuration File

Source: Internet
Author: User
Tags set background

Reprint Address: http://dolive.iteye.com/blog/246060


. Emacs refers to the configuration file for Emacs. Under Unix, ". Emacs". It is in the user's home directory.
You can write a new one yourself. Emacs. But generally from others that (or online) copy one over, and then according to their own needs to modify.

Windows Emacs configuration file path settings:
This stuff must be written down, looked for several times!

Regedit
Java code [HKEY_CURRENT_USER\SOFTWARE\GNU\EMACS] "Home" = "Own Path"
is purple, the next time do not have to go back and forth search!

Under Windows, Emacs does not typically automatically establish a profile. Therefore, under Windows, the default profile directory for Emacs can be typed in Emacs via C-x c-f, and the directory you see is the default directory for the Emacs profile. You can put your profile (. emacs or _emacs, recommended to be _emacs because under Windows. Emacs is not possible) copy it to this directory. In Emacs, there are several profiles written by netizens on the Chinese web, which you can refer to.



HVJ's discussion and promotion Emacs post 0:

I put my Emacs experience and configuration files on the table, and give some explanations, ask some questions, and discuss and promote the good stuff with my brothers and sisters.

Let me give you some links to this post.
The official website of Http://www.gnus.org/software/emacs GNU Emacs.
http://www.emacswiki.org Emacs User base, there are a lot of very good information
Http://learn.tsinghua.edu.cn/homepag...450/emacs.html I learned the initial site of Emacs, where I expressed my gratitude to the author Wang.
Http://learn.tsinghua.edu.cn/homepag...cs24/index.htm I learned the main course of Emacs, Sir, as if someone would like to translate, do not know the translation finished.
Http://www.dotemacs.de/emacs profile of the concentration camp, but the feeling is a bit old.
Http://zhdotemacs.sourceforge.net/emacs/Emacs Culture Guide, there are many suitable for our Chinese use of skills.

Note:
1, the configuration file is based on my profile with a more detailed annotation, before the annotation are used;; The comment is dropped, which means you can handcuff it to the past.
2, because I have time stamp at the beginning of every configuration file (in the 2nd post), in the first paste this timestamp, the back is not posted.
3, I used the elisp bag in Wang Yin's website or emacswiki.org should be able to find, it is not, we also have Google.
4, in order to save the indentation, some code references using PHP source reference, syntax shows that there is a problem, please do not misunderstand.
5, you are welcome to correct the error, discuss the changes, together to improve the level of Emacs application.


HVJ's discussion and promotion Emacs post 1:

First, I need to post my initial file ~/.emacs
References to:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Hans Ve Joanphan ' s Dotemacs file
;;; Last Modified Time
;;; Time-stamp: ;;; Life is a box of chocalates,
;;; You never know what ' re gonna get.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; The above is my time stamp, in the later will have the detailed explanation
;; Set up your full name and email and use it when you send an email
(setq user-full-name "Hans Joanphan")
(setq user-mail-address "joanphan@citiz.com")
;; Set your bookmark file, the default is ~/.EMACS.BMK, I like to put the documents about Emacs as far as possible in a folder, so it was modified.
(setq bookmark-default-file "~/.EMACS.D/.EMACS.BMK")
;; Set the file for the acronym. I don't remember much.
(setq abbrev-file-name "~/.emacs.d/.abbrev_defs")
;; Load-path is similar to the $path in bash, and the Elisp packages required by Emacs are in the Load-path folder, ~/.emacs.d/elisp is the Elisp package I added myself
(Setq Load-path (cons "~/.emacs.d/elisp" Load-path))
;; Set the path to info, or you can set it through the shell's global variable $infopath
(Add-to-list ' info-default-directory-list "~/local/info/")
;; The menu modification configuration will be saved in Custom-file, where I set him up in my elisp concentration camp.
(setq custom-file "~/.emacs.d/elisp/hvj-custom.el")
;; Sets the file that Gnus starts. The default is ~/.gnus.el
(setq gnus-init-file "~/.emacs.d/elisp/hvj-gnus.el")
;; Because my configuration file is very long, I put it in different files according to the classification to facilitate management
(Load "Hvj-basic-config")
(Load "hvj-language")
(Load "Hvj-calendar")
(Load "hvj-folding")
(Load "Hvj-ido")
(Load "hvj-dictionary")
(Load "hvj-function")
(Load "Hvj-mew")
(Load "hvj-w3m")
(Load "Hvj-erc.el")
(Load "hvj-dired")
(Load "Hvj-mode")
(Load "Hvj-wiki")
(Load "Hvj-other-elisp")
(Load "hvj-key-bindings")

;; This thing must be put in the last
;; Desktop.el is a state that can save your last Emacs shutdown and revert to the last shutdown at the next startup. Just like VMware's suspend.
;; Because I want to use Sawfish-mode,wiki-mode,html-helper-mode, put here to ensure that the next time you start to correctly identify the mode of the file needs.
(Load "desktop")
(Desktop-load-default)
(Desktop-read)


Note: For security reasons, I have modified my email address. My exact email address is in the signature.


HVJ's discussion and promotion Emacs Post 2:

This time, I hvj-basic-config.el a part of this, this is mainly about color settings, appearance settings, backup settings, automatic completion settings, time stamp settings, as well as timing display settings.
Quote:;; Color settings, in fact, there is a color-theme.el can set Emacs colorful, very beautiful, but start a bit slow (I do not have the machine), I just chose some color settings.
;; Pointer color set to White
(set-cursor-color "White")
;; The mouse color is set to white
(set-mouse-color "White")
;; Set background color and font color
(set-foreground-color "White")
(Set-background-color "Darkblue")
;; Set some other colors: syntax highlighting background and themes, area selection background and themes, two selection backgrounds and options
(Set-face-foreground ' Highlight "white")
(Set-face-background ' Highlight "blue")
(Set-face-foreground ' Region "cyan")
(Set-face-background ' Region "Blue")
(Set-face-foreground ' secondary-selection "Skyblue")
(Set-face-background ' secondary-selection "Darkblue")
;; Set some colors for a calendar
(Setq Calendar-load-hook
' (Lambda ()
(Set-face-foreground ' Diary-face "Skyblue")
(Set-face-background ' Holiday-face "Slate Blue")
(Set-face-foreground ' Holiday-face "))

;; Appearance settings
;; Remove Toolbar
(Tool-bar-mode Nil)
;; Remove the menu bar, I will F10 bound to display menu bar, in case something forgot, need menu bar can press F10, then press F10 to remove the menu

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.