Remix.run Logo
k_bx 3 hours ago

> — Sensible file handling: backups and auto-saves in a cache/ directory, recentf for recent files, clean buffer naming with uniquify

It's crazy to me how out of the box when you edit nginx file at /etc/nginx/sites-enabled/foo it creates another file foo~ there and nginx tries to load that too

When I tried to ask emacs reddit community they started attacking me for changing the default that only I need and fits everyone perfectly.

Still can't believe I'm the only one finding that default amazingly bad.

parasti 9 minutes ago | parent | next [-]

I would fault nginx here instead. Tilde-suffixed backups is an old convention used by vim and emacs among others. Definitely older than nginx.

baby 3 hours ago | parent | prev | next [-]

I raise you my .DS_store

bandrami an hour ago | parent | prev | next [-]

(setq backup-directory-alist '(("." . "~/.emacs.d/backups/")))

First thing I do any time I install emacs.

Note that tramp will kvetch if you do this, but it still works fine.

draxil 14 minutes ago | parent | prev | next [-]

emacs users who are hostile to you configuring things, aren't really getting the point IMO :)

e40 2 hours ago | parent | prev | next [-]

Been using gnu emacs since the 80s and it’s one of the first things I changed. Did you figure it out? If not I can dig up the answer tomorrow.

k_bx 2 hours ago | parent [-]

Yes I’ve added this to hundreds of containers and vms at this point

(setq make-backup-files nil)

noosphr an hour ago | parent [-]

Just use tramp mode instead.

The fact it can do multi-hop edits is far too much power for us mere mortals.

k_bx an hour ago | parent [-]

It's a very different experience:

- I already have tmux launched, if ssh drops – I can continue

- I don't have to match windows to ssh sessions -- just have them in my tmux

noosphr 5 minutes ago | parent [-]

Yes, tmux vastly inferior to tramp.

Tramp runs in your local Emacs and edits files remotely. It can also launch processes remotely and keep track of them.

globular-toast 2 hours ago | parent | prev | next [-]

This was one of the very first things I added to my config over a decade ago:

    (setq backup-directory-alist '(("." . ".~")))
shevy-java 2 hours ago | parent | prev [-]

I always disable those auto-backup-files features in any editor I use. Never understood why that was the default-on for so many editors.

k_bx 2 hours ago | parent | next [-]

I do too, it’s just that I’ve realised that emacs-nox is awesome container / vm editor out of the box, this backup thing is the only most annoying part (and Ubuntu 22.04 emacs packages expired cert)

bandrami an hour ago | parent | prev | next [-]

It made more sense when running editors over tenuous telnet connections was more common

dhosek 34 minutes ago | parent [-]

The kids really have no idea how tenuous computing in general was back in the olden days. Some of the stability issues in the 20th century translated to modern systems would be akin to black smoke coming out of your computer if you happened to have the wrong two programs running at the same time.

imiric an hour ago | parent | prev [-]

It can be handy. It gives you an additional safety net on top of the VCS that runs automatically in the background. It doesn't take much to configure it to your liking, e.g. [1].

[1]: https://gist.github.com/imiric/812398910c59cf00ab43d9172fe42...