[Top][All Lists]

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

[Orgmode] font lock mode can't get to work

From: Graham Smith
Subject: [Orgmode] font lock mode can't get to work
Date: Thu, 25 Sep 2008 20:31:27 +0100

I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having
a problem with the font lock mode.

adding -*- mode: org; -*- to the file itself works fine, but simply
loading a test.org file doesn't activate org mode.

I have tried commenting out and back in different options in .emacs,
but none seem to work.

I only have these lines in .emacs at the moment.

;;;;;;;;; Org -Mode;;;;;;;;;;

(setq load-path (cons "~/EmacsAddins/Orgmode/lisp" load-path))
(setq load-path (cons "~/EmacsAddins/Orgmode/contrib/lisp" load-path))
(require 'org-install)

;; The following lines are always needed. Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

(global-font-lock-mode 1)                    ; for all buffers
(add-hook 'org-mode-hook 'turn-on-font-lock) ; Org buffers only

I presume I am doing something stupid, but can someone tell me what it might be.



reply via email to

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