Live data from Hacker News

Two Years of Emacs Solo

rahuljuliato.com

121–130 of 147 posts

Re: Two Years of Emacs Solo

#122
post #68
post #31

> — 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 every…

Surprised to hear people told you not to change that - one of the earliest bits of advice I got on using emacs is to set the location of those files to a hidden directory in your home folder.

Changing this to save elsewhere is the #1 improvement to Emacs. It bugs me whenever any software creates backups in the same location as the original.

That said, Nginx is also wrong and shouldn't do that.

Re: Two Years of Emacs Solo

#123
post #59

Earlier quoted context omitted.

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

The list of things emacs users don't get seems to get longer per day so I'm not surprised at the reaction OP got, just disappointed (but I still think this is on nginx more than emacs - unless they really mean foo~ and not .foo~ )

> The list of things emacs users don't get seems to get...

There are a ton of Emacs users, and it's doesn't make much sense to talk about them as a group like that, no more than if I were to say, "The list of things Windows users don't get..."

Re: Two Years of Emacs Solo

#124
post #32
post #31

> — 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 every…

I raise you my .DS_store

In a terminal on macOS, to disable writing .DS_Store files to network file shares:

    defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
And for removable media:

    defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE

Re: Two Years of Emacs Solo

#125
post #55

Earlier quoted context omitted.

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

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.

I am no kid but screen(1) dates back to 1987 and any wise sysadmin would put that advice on every ~/.login or /etc/motd so the user could run 'screen' at login, some keybinding to detach screen(1) and 'screen -r' on coming back by telnet.

Re: Two Years of Emacs Solo

#126

> Disabling C-z (suspend) because accidentally suspending Emacs in a terminal is never fun This reminds me of a story from a past job. I have to get it out of my system. There was this bearded sysadmin guy who was very proud of his "15 years of experience", and was quick to scold us new employees for every little thing he could. He used vim, and every now and then would say that it's a good editor, but kinda "unstabl…

Interesting story, but I'm surprised the OP would disable Cmd-z because that is used all the time with vim

I know you might prefer to run a shell on emacs (or vim) but something only the full terminal can do what you need it to do

Re: Two Years of Emacs Solo

#127
I feel I can given up most packages I use for some hand rolled code (with a significant time investment, that is). There will be tradeoffs.

Every thing except magit. I can’t think of a better way to use git, and it’s one of the main reasons I’ve never survived my adventures in editor wilds for very long.

Re: Two Years of Emacs Solo

#129
post #125
post #55

Earlier quoted context omitted.

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.

I am no kid but screen(1) dates back to 1987 and any wise sysadmin would put that advice on every ~/.login or /etc/motd so the user could run 'screen' at login, some keybinding to detach screen(1) and 'screen -r' on coming back by telnet.

I never used screen back in the day (I was primarily a VMS guy then), but that man page is one of the best-written man pages I’ve come across: informative, friendly and just the right level of detail.

Re: Two Years of Emacs Solo

#130
post #47
post #41

Earlier quoted context omitted.

Yes I’ve added this to hundreds of containers and vms at this point (setq make-backup-files nil)

Just use tramp mode instead. The fact it can do multi-hop edits is far too much power for us mere mortals.

(n)vim can also do this, if you've set up an ssh alias in your ssh config for your multi-hop destination you just list it where the hostname would go. e.g.

nvim scp://remotemachine/.config/emacs/init.el

For the same reason you can use sshfs, sftp, and rsync with multi-hop. Gotta love openssh!

Post reply on HN