Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7795769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:09:53+00:00 2026-06-01T23:09:53+00:00

I would like to have Wrap at Window Edge enabled for all but text-mode

  • 0

I would like to have “Wrap at Window Edge” enabled for all but text-mode buffers (for the latter I have auto-fill turned on via (add-hook 'text-mode-hook 'turn-on-auto-fill)). I couldn’t manage to achieve this and finally reduced the contents of my .emacs file stepwise to see where the problem is. Under my setup (see below), I could start with an empty .emacs and obtained by default (as it should be) Wrap at Window Edge with the little squiggle arrows if a line is wrapped over. Everything fine. Now I added the single line (desktop-save-mode 1) to .emacs. Suddenly, the default switches to “Word Wrap (Visual Line mode)”. If I then (by hand) set it to “Wrap at Window Edge” (via Options -> Line Wrapping in This Buffer), I obtain the right wrapping but the little squiggle arrows are missing.

What is wrong?

I would really like to use desktop-save-mode but I didn’t know that it has such a wide impact on other things.

Here is my setup:
I work with GNU Emacs 24.0.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) [installed as Emacs-pretest-24.0.91-universal-10.6.7.dmg from http://emacsformacosx.com/builds%5D on Mac OS X 10.7.3.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:09:54+00:00Added an answer on June 1, 2026 at 11:09 pm

    The Desktop library not only restores buffers from a session, but it sets the same modes which were active in that session as well, and some variables as well.

    It is therefore possible for changes made in your init file to appear to not take effect, because the pre-change versions from the Desktop file are clobbering them.

    For details, see the commentary in the desktop library, and the manual:

    • M-x find-library RET desktop RET
    • M-: (info "(emacs) Saving Emacs Sessions") RET
    • M-: (info "(elisp) Desktop Save Mode") RET

    For individual file buffers, simply reverting/reloading the file will generally sort things out. For global settings, updating the setting and re-saving the desktop file would usually be enough.

    In theory, you should be able to wipe the slate clean with:
    M-x desktop-clear RET

    Failing that, shut down Emacs and delete the .emacs.desktop and .emacs.desktop.lock files before restarting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a function that can wrap any other function call.
I have a problem that I would like have solved via a SQL query.
So in my project i would like have a nice treeview that has images.
I would like to have it so that when I play one Vimeo video
I would like to have a drag-and-drop feature based on images. If I drag
I would like to have a Referral model, where user A can refer an
I would like to have an interface that allows for a generic type public
I would like to have a desktop PC and a laptop available for development.
I would like to have a reference for the pros and cons of using
I would like to have an iframe take as much vertical space as it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.