Hello,

陈泼杨 <chenpoy...@163.com> writes:

> .h file use c/c++ mode or objc-mode base on it's content, so there is 
> emacswiki solution there:
> https://www.emacswiki.org/emacs/ObjectiveCMode, so i put the the code in my 
> configuration:
>
> ;; header .h add to objc-mode, this cause org unable to export to html file
> (add-to-list 'magic-mode-alist
>            `(,(lambda ()
>                 (and (string= (file-name-extension buffer-file-name) "h")
>                      (re-search-forward "@\\<interface\\>"
>                                         magic-mode-regexp-match-limit t)))
>              . objc-mode))

Try to use `equal' instead of `string='.

Regards,

-- 
Nicolas Goaziou

Reply via email to