我想在Windows中双击打开它们时将emacs设置为文本文件的默认编辑器.但是我想在emacs(即框架)的同一个运行实例中打开它们作为缓冲区,如果有的话.现在,该行为将打开另一个emacs实例(即另一个emacs框架).
有谁知道init.el中的哪个规范会允许这种行为?
我一直在使用这个人的方法,这是向注册表添加条目的替代方法.我在这里重现了他的步骤:
:::::::::::::::::::::::::::::::::::::::::::::::::: ::: ::: Emacsclient startup script runemacsclientw.bat ::: Robert Adesam, robert@adesam.se ::: http://www.adesam.se/robert/ ::: ::: N.B. Alot of this is reused from other Emacs ::: users that have published stuff on the ::: Internet. Thank you! :) :::::::::::::::::::::::::::::::::::::::::::::::::: @echo off :: Emacs binaries... set binpath=c:\Program Files\emacs\bin :: If no arg is given set filename to c:\ if "%~1"=="" ( set filename=c:\ ) else ( set filename=%~1 ) :: Run Emacsclient "%binpath%\emacsclientw.exe" --no-wait --alternate-editor="%binpath%\runemacs.exe" "%filename%"
| 归档时间: |
|
| 查看次数: |
2188 次 |
| 最近记录: |