nxhtml team mailing list archive
-
nxhtml team
-
Mailing list archive
-
Message #00377
[Question #198782]: How to enable /* Local variables */
New question #198782 on nXhtml:
https://answers.launchpad.net/nxhtml/+question/198782
I have added my own little mumamo c-org-mumamo-mode so that
I can embed org-mode snippets inside a c-file comment. " use +{ ... }+ brackets
to mark org-mode.
Now the problem I have is that the /* Local Variables: */ of the
test.c dont get propagated to c-mode. The local variables are
ignored. How can I enable so that c-mode gets the local variables?
-- Konrad
mumamo-fun.el:
...
(defun mumamo-chunk-c-org(pos min max)
"Find +{ ... }+. Return range and `org-mode'.
See `mumamo-find-possible-chunk' for POS, MIN and MAX."
(mumamo-quick-static-chunk pos min max "+{" "}+" t 'org-mode t))
;;;###autoload
(define-mumamo-multi-major-mode c-org-mumamo-mode
"Turn on multiple major modes for C with main mode `c-mode' and comment embedded org-mode snippets. "
("C-org Family" c-mode
(mumamo-chunk-c-org
)))
...
test.c:
/*+{
This is org-mde
}+
*/
func() {}
/*
Local Variables:
c-basic-offset:4
indent-tabs-mode:nil
End:
*/
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.