Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I get XEmacs to come up in text/auto-fill mode by default?

auto-fill Default mode text XEmacs
0
Posted

How can I get XEmacs to come up in text/auto-fill mode by default?

0

Try the following lisp in your `.emacs’: (setq default-major-mode ‘text-mode) (setq text-mode-hook ‘turn-on-auto-fill) WARNING: note that changing the value of default-major-mode from fundamental-mode can break a large amount of built-in code that expects newly created buffers to be in fundamental-mode. (Changing from fundamental-mode to text-mode might not wreak too much havoc, but changing to something more exotic like a lisp-mode would break many Emacs packages). Note that Emacs by default starts up in buffer *scratch* in initial-major-mode, which defaults to lisp-interaction-mode. Thus adding the following form to your Emacs init file will cause the initial *scratch* buffer to be put into auto-fill’ed text-mode: (setq initial-major-mode (lambda () (text-mode) (turn-on-auto-fill))) Note that after your init file is loaded, if inhibit-startup-message is nil (the default) and the startup buffer is *scratch* then the startup message will be inserted into *scratch*; it will be removed a

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123