emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-mode Babel does not show syntax highlight when open with another mode
@ 2015-10-05 14:54 stardiviner
  2015-10-05 15:03 ` stardiviner
  0 siblings, 1 reply; 3+ messages in thread
From: stardiviner @ 2015-10-05 14:54 UTC (permalink / raw)
  To: Org-mode, stardiviner


I try to configure Org-mode to open ruby source code block with `enh-ruby-mode`.

configuration as following:

#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'enh-ruby-mode
  (add-to-list 'org-src-lang-modes '("ruby" . enh-ruby)))
#+END_SRC

This will open code block in `enh-ruby-mode` when you edit with [C-c '].

You can see the syntax highlighting failed result screenshot at here:

http://emacs.stackexchange.com/questions/17042/org-mode-babel-failed-syntax-highlight-after-change-org-src-lang-modes

I hope to keep the syntax highlight, (If can use enh-ruby-mode syntax highlight
will be better).

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-17  7:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 14:54 Org-mode Babel does not show syntax highlight when open with another mode stardiviner
2015-10-05 15:03 ` stardiviner
2015-10-17  7:30   ` Kyle Meyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).