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