[PLUG] Emacs & word wrap

Jason Dagit dagit at engr.orst.edu
Sat Aug 31 06:43:40 UTC 2002


Is there a way I could pass a variable on the command line?  Then just
enable auto-fill-mode if the var is set?  Since pine starts a new
instance of emacs for every edit, then that might work really well.

Jason

On 30 Aug 2002, Russell Senior wrote:

> >>>>> "Jason" == Jason Dagit <dagit at engr.orst.edu> writes:
>
> Jason> I added that stuff to my .emacs, but it never happens.  I
> Jason> noticed that when I edit email the major mode is Fundamental,
> Jason> so I added fundamental-mode to list, and it still doesn't work.
> Jason> What am I doing wrong...
>
> My reading of the emacs info pages lead me to think that the
> add-to-hooks call should look like this instead:
>
> (add-to-hooks #'auto-fill-mode '(text-mode-hook
>                                  message-mode-hook
>                                  ;; ... add more mode names here ...
>                                 ))
>
> Note the addition of -hook to Karl's example.  Also, I don't think
> there is a 'fundamental-mode-hook, which partially torpedoes that for
> you.
>
> I think a reasonable solution is to indicate a default mode for new
> buffers and then make sure auto-fill is on for text-mode with the two
> following lines:
>
>   (setq default-major-mode 'text-mode)
>   (add-hook 'text-mode-hook 'turn-on-auto-fill)
>
> --
> Russell Senior         ``The two chiefs turned to each other.
> seniorr at aracnet.com      Bellison uncorked a flood of horrible
>                          profanity, which, translated meant, `This is
>                          extremely unusual.' ''
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>





More information about the PLUG mailing list