Emacs Package Install

Source: Internet
Author: User

1.. ELC is a compiled file for. El, which runs faster. Elisp source code can be byte-compile.

Php-mode.el >> PHP MODE.ELC

2. Loading mode

A. halfway load: m-x load file >> your file >> m-x php-mode

B. Automatic loading on startup

If you want Emacs to load the file when it starts,

(1) Put the file in the dir ~/.emacs.d/lisp/ and (create that directory if it doesn ' t exist.)

(2) then put the following in your Emacs init file: (. emacs)

tell Emacs where is your personal elisp lib Dir  ( /span>  add-to-list ' Load-path     "~/.emacs.d/lisp/")   ; load the packaged named Php-mode.   (    load    " Php-mode ")   ; best not to include the ending ". El" or ". Elc" 

3. When open file Auto-activation mode: auto-activation of Mode when Opening file
Setup files ending in ". js" to open in Js2-mode (add-to-list 'auto-mode-alist ' ("\\.js\\")


--------------------------------------------------
What's the Purpose Of(~/.emacs.d/)path?

By convention, the was ~/.emacs.d/ a dir for all your personal emacs files. It is the default value of the variable user-emacs-directory . On Windows, the path is %HOMEPATH%/.emacs.d/ . (? Windows Environment Variables Basic Tutorial)emacs should has created this dir for you. If it ' s not there, you can just create it yourself.

By convention, the dir was for ~/.emacs.d/lisp/ packages you manually installed. (Elpa packages is installed at ~/.emacs.d/elpa/ )

-----------------------------------------------------

Emacs Package Install

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.