|
| 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 14:35:18 +0100 |
| User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
陈泼杨 <address@hidden> writes:
> --------------------------------------------------------------------------------
> (add-to-list 'magic-mode-alist
> `(,(lambda ()
> (and (equal (file-name-extension buffer-file-name) "h")
> (re-search-forward "@\\<interface\\>"
> magic-mode-regexp-match-limit t)))
> . objc-mode))
> --------------------------------------------------------------------------------
>
> still unable to export org file to html:
Your function doesn't handle buffers not associated to a file. You may
want to try
(and (stringp buffer-file-name)
(equal "h" (file-name-extension buffer-file-name))
...)
Regards,
| [Prev in Thread] | Current Thread | [Next in Thread] |