【问题标题】:How to get Emacs Live to recognize Hoplon (hl)? [duplicate]如何让 Emacs Live 识别 Hoplon (hl)? [复制]
【发布时间】:2014-02-19 16:07:45
【问题描述】:

有谁知道如何让 Emacs Live 识别 Hoplon (hl)?这些 hl 文件应被视为 clojurescript 文件。

【问题讨论】:

    标签: emacs clojurescript hoplon


    【解决方案1】:

    如果您同时使用 HTML 和 s-expression 语法,您可能希望使用 .cljs.hl.html.hl 扩展来帮助 emacs 区分它们。所以你可能想要这样的东西:

    (add-to-list 'auto-mode-alist '("\\.html\\.hl\\'" . html-mode))
    (add-to-list 'auto-mode-alist '("\\.cljs\\.hl\\'" . clojure-mode))
    

    【讨论】:

    • 会不会是web-mode 而不是html-mode
    【解决方案2】:

    如评论中所述,

    (add-to-list 'auto-mode-alist '("\\.hl" . clojurescript-mode))
    

    应该做的伎俩。

    【讨论】:

      猜你喜欢
      • 2023-03-29
      • 2016-01-05
      • 1970-01-01
      • 2016-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-28
      • 2013-08-30
      相关资源
      最近更新 更多