gpt4 book ai didi

emacs - 如何为新语言编写 emacs 模式?

转载 作者:行者123 更新时间:2023-12-02 04:36:06 26 4
gpt4 key购买 nike

我想为 4GL 编写一个Emacs 主要模式。有人可以给我看一个教程吗?据我用谷歌搜索,我只能找到这个损坏的:

链接 http://two-wugs.net/emacs/mode-tutorial.html

最佳答案

如果您很懒,一种简单的方法是扩展 generic-mode 以了解您的新语言:

http://emacswiki.org/emacs/GenericMode

我经常为应用程序的配置文件执行此操作,以获得良好的语法突出显示。 Here's one我很久以前就为asterisk PBX做过例子。

关于emacs - 如何为新语言编写 emacs 模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/91201/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com