From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julius Dittmar Subject: Re: when/how are org-mode settings loaded Date: Thu, 8 Feb 2018 14:08:34 +0100 Message-ID: <16a2287d-fb29-1304-5326-939a5dd1d9df@gmx.de> References: <77BECB79-EA57-47BC-846E-55654892A17F@me.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejlwO-0002cr-9o for emacs-orgmode@gnu.org; Thu, 08 Feb 2018 08:08:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejlwL-0002L0-45 for emacs-orgmode@gnu.org; Thu, 08 Feb 2018 08:08:40 -0500 Received: from mout.gmx.net ([212.227.15.15]:55199) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejlwK-0002KF-Q5 for emacs-orgmode@gnu.org; Thu, 08 Feb 2018 08:08:37 -0500 Received: from [192.168.175.209] ([87.139.53.30]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MDQUP-1eTavO0TFd-00Gtnh for ; Thu, 08 Feb 2018 14:08:35 +0100 In-Reply-To: <77BECB79-EA57-47BC-846E-55654892A17F@me.com> 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" To: emacs-orgmode@gnu.org Hi Jack, thanks for the answer. Am 08.02.2018 um 13:44 schrieb Jack Henahan: > Could you post your config? I shy back from that because the config -- a strongly modified version of the configuration pubished at http://doc.norang.ca/org-mode.html -- is quite lengthy. > I expect the issue is that you don’t (require 'org) or set up the auto-mode-alist in your init file. This would also be the case if, for instance, you defer loading the package with use-package, as well. Invoking the agenda will load org, so the next org file you open will do what you expect. The config starts with (require 'org) immediately after adjusting some paths so the git-version of org is found. Some lines below there's (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) > Do org files open in Fundamental mode when you don’t invoke the agenda first? How would I find out? Emacs adds the org-specific menu entries upon opening that file, and shows org as major mode in the status line. At least some of the org shortcuts (like adding a timestamp, or the basic outlining key-codes) are active. I just sorely miss the highlighting :-( Thanks for any hints, Julius > On Feb 8, 2018, at 03:42, Julius Dittmar wrote: >> Hi, >> >> I'm an emacs-newbe, so please bear with me. I must be doing something >> wrong and I have no idea where to look. >> >> If my emacs-starting sequence is >> >> 1. call emacs with no arguments (and a config file adding various >> org-mode settings) >> 2. launch org-mode agenda once >> 3. open a file with .org suffix >> >> then highlighting and keybindings for that file are as I expect them and >> in sync with the org-mode settings in the config file. >> >> If I omit step 2, then highlighting in the file does not work. >> >> Even if I then call agenda and later, either by choosing an agenda item >> or directly, go back to that file buffer, highlighting still does not >> work there. >> >> Any pointers as to what might cause such behaviour? Or perhaps a faster >> work-around than generating the whole (over-full) agenda? >> >> Thanks in advance, >> >> Julius >> >> PS: GNU Emacs 24.3.1, org-mode release_9.1.6-159-g8554aa9