From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: org-writers-room sort of works! just in time for NaNoWriMo Date: Fri, 01 Nov 2013 15:45:53 +0100 Message-ID: <87zjpokwny.fsf@gmail.com> References: <87a9hovem1.fsf@breezy.my.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcFzI-0002UP-SD for emacs-orgmode@gnu.org; Fri, 01 Nov 2013 10:46:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcFzB-0002rU-I2 for emacs-orgmode@gnu.org; Fri, 01 Nov 2013 10:46:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:52889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcFzB-0002rN-B7 for emacs-orgmode@gnu.org; Fri, 01 Nov 2013 10:46:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VcFzA-0004gE-CG for emacs-orgmode@gnu.org; Fri, 01 Nov 2013 15:46:04 +0100 Received: from g231108014.adsl.alicedsl.de ([92.231.108.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Nov 2013 15:46:04 +0100 Received: from tjolitz by g231108014.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Nov 2013 15:46:04 +0100 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: emacs-orgmode@gnu.org Matt Price writes: Hi, > Do you load visual line mode automatically when you load org-mode? if > not it will definitely be broken, as I have to manually set the major > and minor modes on the new buffers (if I don't do that, all indirect > buffers will have the same modes as the parent buffer, which I don't > want). I bet there's a way to record all the minor modes in a buffer, > then reload them in the indirect buffer, but I don't know it. Does > anyone else out there? I have this (stolen) function in outorg.el: ,--------------------------------------------------------------------------- | ;; courtesy to Trey Jackson (http://tinyurl.com/cbnlemg) | (defun outorg-which-active-modes () | "Give a message of which minor modes are enabled in the current buffer." | (interactive) | (let ((active-modes)) | (mapc | (lambda (mode) | (condition-case nil | (if (and (symbolp mode) (symbol-value mode)) | (add-to-list 'active-modes mode)) | (error nil) )) | minor-mode-list) | ;; (message "Active modes are %s" active-modes) | active-modes)) `--------------------------------------------------------------------------- -- cheers, Thorsten