Matt Price <mopto...@gmail.com> 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


Reply via email to