From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Org-mode Babel does not show syntax highlight when open with another mode Date: Mon, 05 Oct 2015 22:54:08 +0800 Message-ID: <87k2r1l627.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjHNP-0001PJ-L4 for emacs-orgmode@gnu.org; Mon, 05 Oct 2015 21:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjHNL-0003jr-Ev for emacs-orgmode@gnu.org; Mon, 05 Oct 2015 21:49:11 -0400 Received: from [218.109.152.41] (port=5284 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjHNL-0003hs-2F for emacs-orgmode@gnu.org; Mon, 05 Oct 2015 21:49:07 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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).