emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-writers-room sort of works! just in time for NaNoWriMo
Date: Fri, 01 Nov 2013 15:45:53 +0100	[thread overview]
Message-ID: <87zjpokwny.fsf@gmail.com> (raw)
In-Reply-To: CAN_Dec_YuGnR19iz2wYwRZ2moDf4pT9roi3XYD9T+GuyQULUYw@mail.gmail.com

Matt Price <moptop99@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	other threads:[~2013-11-01 14:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01  4:00 org-writers-room sort of works! just in time for NaNoWriMo Matt Price
2013-11-01  6:07 ` Ivan Andrus
2013-11-01  6:08 ` Alan L Tyree
2013-11-01  9:07   ` Ian Barton
2013-11-01 14:13     ` Matt Price
2013-11-01 14:12   ` Matt Price
2013-11-01 14:45     ` Thorsten Jolitz [this message]
2013-11-01 18:28     ` Alan L Tyree
2013-11-03  3:38       ` Matt Price
2013-11-04  1:10         ` Thorsten Jolitz
     [not found]           ` <CAN_Dec-+rQSqcDcjpFo9MsfuvK3Fc0bRDrMe_NR232XtcguUXg@mail.gmail.com>
     [not found]             ` <87a9hkjcli.fsf@gmail.com>
2013-11-05  9:54               ` Matt Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjpokwny.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).