emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: the code(convert the file to objc-mode) cause orgmode expor


From: Nicolas Goaziou
Subject: Re: [O] Bug: the code(convert the file to objc-mode) cause orgmode export to html file error
Date: Tue, 26 Dec 2017 12:28:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

陈泼杨 <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]