emacs package install

1.  .elc 是 .el的编译文件,运行速度更快. Elisp source code can be byte-compile.

php-mode.el >> php mode.elc

2. 加载方式

a. 半路加载:  M-x load file >> your file >> M-x php-mode

b. 启动就自动加载

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

(1) put the file in the dir ~/.emacs.d/lisp/, (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
(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.  当打开文件自动激活模式: Auto-Activation of Mode When Opening File

;; setup files ending in “.js” to open in js2-mode
(add-to-list ‘auto-mode-alist ‘("\\.js\\‘" . js2-mode))

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

What is the Purpose of 〔~/.emacs.d/〕 Path?

By convention, the ~/.emacs.d/ is 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 23 should have created this dir for you. If it‘s not there, you can just create it yourself.

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

-----------------------------------------------------
时间: 2024-10-13 14:42:13

emacs package install的相关文章

sublime安装sublime server 和 无法使用package install的解决方法

无法使用package install 直接从https://github.com/wbond/sublime_package_control 下载文件,并改名为Package Control 然后打开sublime软件,点开首选项-->浏览器插件,用下载的文件夹,替换掉里面的相应文件夹.重启软件,就能正常使用了.ps 网上说修改hosts文件,我试了下,并没哟效果. 然后召唤出Package Install,输入sublime server,回车安装即可. 在工具-->sublimeServ

maven package install deploy区别

package 命令完成了项目编译.单元测试.打包功能,但没有把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库install 命令完成了项目编译.单元测试.打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库,但没有布署到远程maven私服仓库deploy 命令完成了项目编译.单元测试.打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库 原文地址:http

Maven 打包 package install deploy-项目构建的理解

项目的构建理解 构建工具能够帮我们自动化构建过程,从清理.编译.测试到生成报告,再到打包和部署.我们只需要输入简单的命令(如 mvn clean install),Maven 就会帮我们处理繁琐的任务:它最大化的消除了构建的重复,抽象了构建生命周期,并且为绝大部分的构建任务提供了已实现的插件.比如说测试,我们只需要遵循 Maven 的约定编写好测试用例,当我们运行构建的时候,这些测试便会自动运行.除此之外,Maven 能帮助我们标准化构建过程.在 Maven 之前,十个项目可能有十种构建方式,但

maven 打包命令package,install, deploy 的区别

maven 打包命令区别 mvn clean package 依次执行了clean, resource, compile, testResources, testCompile, test, jar(打包)等7个阶段 package命令完成了项目编译,单元测试, 打包功能, 但没有把打好的包部署到本地maven仓库和远程的maven私服仓库 mvn clean install 依次执行了clean, resource, compile, testResources, testCompile, t

Maven 打包 package install deploy 区别

一.打包区别mvn package:打包到本项目,一般在项目target目录下.mvn install:打包到本地仓库,如果没设置Maven本地仓库,一般在用户/.m2目录下.mvn deploy:打包上传到远程仓库,如:私服nexus等,需要配置pom文件.二.打包过程mvn clean package依次执行:clean.resources.compile.testResources.testCompile.test.jar(打包).mvn clean install依次执行:clean.r

MVN package install error javac: invalid target release: 1.8

现象:---------------------------------[ERROR] Failure executing javac, but could not parse the error:javac: invalid target release: 1.8Usage: javac <options> <source files>use -help for a list of possible option---------------------------------调

[3] Software Package(Install,Uninstall)

Ubuntu: Deb RedHat: Rpm DPKG [email protected]:/etc$ dpkg -l | grep openssh --Filter file name with :opensshii  openssh-client                         1:5.9p1-5ubuntu1                        secure shell (SSH) client, for secure access to remote mach

我的emacs配置

我的emacs配置文件 ;; .emacs ;; ============================== Basic Configure START ===================================== ;; set TAB=4 for C ;;(setq c-basic-offset 4) ;; ;; show colume number ;;(setq column-number-mode t) ;; kill the buffer imediate (globa

emacs org plot 绘图

有了这个玩意,不再需要excel了. 首先安装gnuplot软件,ubuntu下很简单 apt-get install gnuplot 然后用emacs package安装gnuplot 和 gnuplot-mode. 现在取一个简单的例子说明一下,编辑下面的org文件: #+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]" | Sede | Max cites