Fork me on GitHub
#emacs
<
2018-04-19
>
sarna18:04:59

hey, I have a weird problem. I'm using spacemacs and when I'm saving a file, it doesn't save sometimes

sarna18:04:48

I've lost some progress today and I'm pretty sure I exited by doing :wq

jeff.terrell18:04:53

That sounds lame. Can you figure out how to reproduce the problem consistently?

sarna19:04:19

it's pretty inconsistent, that's why I'm puzzled

sarna19:04:55

oh, auto-save doesn't work at all

sarna19:04:59

:thinking_face:

sarna19:04:32

steps to reproduce: modify a file be idle for 30 secs so "auto saving.. done" appears kill emacs the file is unchanged

sarna19:04:07

okay, so: another file is created, named #foo. and then, when I open emacs, it says for a fraction of a second: "a modified version of foo exists, hit something to recover" how am I supposed to be quick enough to notice the text and hit this key combination 😕

jeff.terrell19:04:32

Yeah, auto-saving doesn't occur to the actual file, but to a backup.

jeff.terrell19:04:52

You can view the *Messages* buffer to see old messages, including that one.

sarna19:04:28

well, is there a way to auto-save to the actual file?

hkjels08:04:41

You should check out super-save

hkjels08:04:14

Ohh, I see someone already mentioned it 🙂

jeff.terrell19:04:27

Almost certainly, if you're willing to dig into the world of elisp. simple_smile But I don't know a simple way. Personally, I've just gotten good at hitting SPC f s (in Spacemacs).

sarna19:04:59

alright, thanks anyway 😞

👍 4
ag20:04:32

@mailmeupinside I remember @bozhidar wrote a package couple of years ago that saves a file when the buffer loses focus

bozhidar20:04:23

Yeah, I did.

ag20:04:42

see, all the problems that you have either already were solved by @bozhidar or he simply never had time to work on it. Or the problem of yours is imaginary and does not require a solution

sarna20:04:30

or should I post it on #cider

sarna20:04:13

well wait I can't post images apparently