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 6473651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:29:30+00:00 2026-05-25T06:29:30+00:00

I have Emacs open but accidentally I’ve deleted the .emacs file it read when

  • 0

I have Emacs open but accidentally I’ve deleted the .emacs file it read when it started. This represents about 15 years of tweaking. (I know, I know, backups.)

Is there a way to get Emacs to write out the .emacs file I’ve deleted?

I wouldn’t normally ask such a lame question on SO but I know I only have a day or so before this Emacs session ends.

  • 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-05-25T06:29:31+00:00Added an answer on May 25, 2026 at 6:29 am

    As ayckoster suggests, you might try a file recovery or forensics tool like The Sleuth Kit. Or, and this may seem crazy, if you’re on a Unix-like system, you could search through the raw disk device (on the Mac I’m currently on, that would be /dev/rdisk1). Seriously, several times I’ve been too lazy to break out a full-blown recovery tool but instead used something like sudo less -f /dev/rdisk1, searched for a string I knew was in the file (global-set-key, anyone?), and succeeded in recovering the file’s original content.

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

Sidebar

Related Questions

This happens to me all the time: I have a file open in emacs,
Does Emacs have the capability to open recent files (e.g. a menu like File
I have been using emacs for a while but not so familiar with lisp
I would like to have which-function-mode on by default when I open up Emacs.
suppose i have the following in a text file (or dired buffer) open in
I have a number of splits open, looking at various buffers. But when I
When I am debugging code in Emacs, I like to have two buffers open,
As per the Emacs docs , every time you open a file, Emacs changes
So, this might be a heretical question, but I'm looking for an Emacs mode
I have two sessions open in Emacs-ESS: one on my desktop and one on

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.