all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to use allout with perl?
@ 2006-08-03 22:31 Bill White
  2006-08-03 23:00 ` Bill White
  0 siblings, 1 reply; 2+ messages in thread
From: Bill White @ 2006-08-03 22:31 UTC (permalink / raw)


I've learned to love allout mode with planner and muse; now I'd like
to use it to organize perl code, but I can't figure out what prefixes
to use in my perl file (which is in emacs' standard perl mode).  Any
suggestions?

I've tried things like

#.*
##.*
# .*
#. *
###_* (mimicing allout.el)

and on and on.  A prefix of '*' works, but the thing needs to be
commented out, which seems to break allout's magic.  Of course, I have
this at the bottom of the file after __END__:

Local variables:
allout-layout: (1 : )
End:

Many thanks for any ideas!

bw
-- 
Bill White . billw@mchsi.com . http://members.wolfram.com/billw

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

* Re: how to use allout with perl?
  2006-08-03 22:31 how to use allout with perl? Bill White
@ 2006-08-03 23:00 ` Bill White
  0 siblings, 0 replies; 2+ messages in thread
From: Bill White @ 2006-08-03 23:00 UTC (permalink / raw)


Bill White wrote:
> I've learned to love allout mode with planner and muse; now I'd like
> to use it to organize perl code, but I can't figure out what prefixes
> to use in my perl file (which is in emacs' standard perl mode).  Any
> suggestions?

As usual, I stumbled upon the answer just after posting :-)  In
~/.emacs:

(add-to-list 'allout-mode-leaders '(perl-mode . "###_"))

or whatever strikes your fancy.  Then in your .perl file, use comments
like this:

###_. or
###_#1 or
###_, etc.

Cheers -

bw

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

end of thread, other threads:[~2006-08-03 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 22:31 how to use allout with perl? Bill White
2006-08-03 23:00 ` Bill White

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.