emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Org-mode Babel does not show syntax highlight when open with another


From: stardiviner
Subject: [O] Org-mode Babel does not show syntax highlight when open with another mode
Date: Mon, 05 Oct 2015 22:54:08 +0800

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).



reply via email to

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