简体   繁体   English

Emacs的另一个片段扩展php-mode

[英]Emacs yet another snippet extension php-mode

I'm new to using emacs, and I am currently having some trouble with the 'yet another snippet' extension. 我是使用emacs的新手,目前在使用“还有另一个代码段”扩展时遇到了一些麻烦。

I am trying to do some work using the php-mode major mode. 我正在尝试使用php-mode主要模式进行一些工作。 Unfortunately, it is based on the cc-mode, which means the snippet extension is looking at the C and PHP snippets. 不幸的是,它是基于cc模式的,这意味着该片段扩展正在查看C和PHP片段。

Is there any way to just load the PHP snippets instead of loading them from both C and PHP? 有什么方法可以仅加载PHP代码段,而不是同时从C和PHP加载它们?

文档表明将一个空的.yas-parents文件放入php-mode片段目录即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM