From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [BUG] Making *scratch* orgmode results in unfontified code blocks Date: Tue, 02 Nov 2010 10:29:35 -0500 Message-ID: <87sjzjwxpc.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=42275 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDInU-0006mT-HL for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 11:29:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDInT-0005H6-9s for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 11:29:16 -0400 Received: from li28-75.members.linode.com ([75.127.72.75]:40817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDInT-0005Gr-7c for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 11:29:15 -0400 Received: from grumps (localhost [127.0.0.1]) by li28-75.members.linode.com (Postfix) with ESMTP id B79E9C90E for ; Tue, 2 Nov 2010 15:29:13 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Not sure if I should mark this as a bug or not... could be PEBKAC, but I can't figure out how to fix it. I want to use org-mode as my *scratch* buffer, largely because I like dumping fontified code snippets into it. However, if I set *scratch* to org-mode and also set org-src-fontify, etc, well beforehand, it still doesn't fontify when I put src blocks in later. To test, put this in your .emacs: #+begin_src emacs-lisp (setq org-src-fontify-natively t) (setq org-src-tab-acts-natively t) (setq initial-major-mode 'org-mode) (with-current-buffer "*scratch*" (if (not (eq major-mode initial-major-mode)) (funcall initial-major-mode))) (setq initial-scratch-message (purecopy "\ # Scratch! # -------- # This buffer is for notes you don't want to save, etc. ")) #+end_src then open emacs, switch to *scratch*, try inserting code. Over here at least, it doesn't seem to fontify. Running latest master in git.