From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: set minor mode based on first line of a buffer? Date: Tue, 3 Sep 2013 12:21:04 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGtLn-0005d7-Cu for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 12:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGtLm-0002vS-2h for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 12:21:07 -0400 Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:51430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGtLl-0002vM-RH for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 12:21:06 -0400 Received: by mail-ea0-f181.google.com with SMTP id d10so3143519eaj.12 for ; Tue, 03 Sep 2013 09:21:05 -0700 (PDT) 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 Last question for a while I hope! I have a whole bunch of org files that I am reposting to my website at the beginning of the school year. These are files generated with org2blog/wp, and htey all have afirst line like: #+POSTID: 1797 I would really like to tell org-mode that files that start this way should be started with org2blog-mode (a minor mode) switched on? I guess I need to write a hook that parses reads that first line somehow? thanks again, matt