[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-writers-room sort of works! just in time for NaNoWriMo
From: |
Thorsten Jolitz |
Subject: |
Re: [O] org-writers-room sort of works! just in time for NaNoWriMo |
Date: |
Fri, 01 Nov 2013 15:45:53 +0100 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Matt Price <address@hidden> 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
Re: [O] org-writers-room sort of works! just in time for NaNoWriMo, Ivan Andrus, 2013/11/01