all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* writing a minor mode
@ 2004-06-02 20:09 R. Sean Bowman
  2004-06-02 20:49 ` Marcelo Toledo
  0 siblings, 1 reply; 3+ messages in thread
From: R. Sean Bowman @ 2004-06-02 20:09 UTC (permalink / raw)


hello,

I use emacs to edit Python code, and I hate lines longer than 80
characters.  I'd like to write a minor mode that draws a vertical line or
darkens the character at the 80th spot, but I'm confused about how to do
that.  Should I use a bunch of overlays?  Is there some better way?  Any
help would be greatly appreciated.

Sean

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

* Re: writing a minor mode
  2004-06-02 20:09 R. Sean Bowman
@ 2004-06-02 20:49 ` Marcelo Toledo
  0 siblings, 0 replies; 3+ messages in thread
From: Marcelo Toledo @ 2004-06-02 20:49 UTC (permalink / raw)
  Cc: help-gnu-emacs

Isn't better just to use:

,----[ C-h f auto-fill-mode RET ]
| auto-fill-mode is an interactive compiled Lisp function in `simple'.
| (auto-fill-mode &optional ARG)
| 
| Toggle Auto Fill mode.
| With arg, turn Auto Fill mode on if and only if arg is positive.
| In Auto Fill mode, inserting a space at a column beyond
| `current-fill-column'
| automatically breaks the line at a previous space.
| 
| The value of `normal-auto-fill-function'specifies the function to use
| for àuto-fill-function'when turning Auto Fill mode on.
`----

"R. Sean Bowman" <sean@rootnode.com> writes:

> hello,
>
> I use emacs to edit Python code, and I hate lines longer than 80
> characters.  I'd like to write a minor mode that draws a vertical line or
> darkens the character at the 80th spot, but I'm confused about how to do
> that.  Should I use a bunch of overlays?  Is there some better way?  Any
> help would be greatly appreciated.
>
> Sean
>
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
>

-- 
Marcelo Toledo
marcelo@marcelotoledo.org
http://www.marcelotoledo.org
Mobile: 55 71 9141-7181

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

* Re: writing a minor mode
@ 2004-06-03  1:33 Joe Corneli
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Corneli @ 2004-06-03  1:33 UTC (permalink / raw)



   ,----[ C-h f auto-fill-mode RET ]

That isn't a mode I'd prefer to use for writing code.  I think
highlight-beyond-fill-column.el from the Emacs Lisp List is more
like what the OP had in mind.  YMMV (I couldn't get it to work.)
Look around the net for other things that do the same thing.  For
help with writing minor modes, read the elisp manual.  

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

end of thread, other threads:[~2004-06-03  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03  1:33 writing a minor mode Joe Corneli
  -- strict thread matches above, loose matches on Subject: below --
2004-06-02 20:09 R. Sean Bowman
2004-06-02 20:49 ` Marcelo Toledo

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.