emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* set minor mode based on first line of a buffer?
@ 2013-09-03 16:21 Matt Price
  2013-09-04  2:22 ` Samuel Wales
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Price @ 2013-09-03 16:21 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: set minor mode based on first line of a buffer?
  2013-09-03 16:21 set minor mode based on first line of a buffer? Matt Price
@ 2013-09-04  2:22 ` Samuel Wales
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Wales @ 2013-09-04  2:22 UTC (permalink / raw)
  To: Matt Price; +Cc: Org Mode

magic-mode-alist

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-04  2:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 16:21 set minor mode based on first line of a buffer? Matt Price
2013-09-04  2:22 ` Samuel Wales

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).