Reputation
626
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
8 23
Impact
~43k people reached

  • 0 posts edited
  • 2 helpful flags
  • 36 votes cast
Apr
5
revised Remap “cmd”+“W” to kill-buffer in Aquamacs?
Make it conditional on osx-key-mode being loaded so it doesn't affect regular emacs.
Apr
2
comment Remap “cmd”+“W” to kill-buffer in Aquamacs?
@JonathanS I realized the function was being loaded, but the problem might be that my key binding was wrong. In searching for information about key bindings someone mentioned remapping the Command key to Alt. I tried it and it worked.
Apr
1
accepted Remap “cmd”+“W” to kill-buffer in Aquamacs?
Apr
1
answered Remap “cmd”+“W” to kill-buffer in Aquamacs?
Apr
1
revised Remap “cmd”+“W” to kill-buffer in Aquamacs?
added 111 characters in body
Apr
1
comment Remap “cmd”+“W” to kill-buffer in Aquamacs?
@JonathanS Yes, .emacs and ~/Library/Preferences/Aquamacs Emacs/Preferences.el are definitely being read in as I have other preferences in them. Even if I use eval-region on the code it does not work. I verified with describe-function that it is loaded.
Mar
31
accepted How can I close all buffers in Emacs?
Mar
31
comment How can I close all buffers in Emacs?
@lawlist Thanks! You should post that as an answer here so it's available under the right question title to be found by others.
Mar
30
revised Remap “cmd”+“W” to kill-buffer in Aquamacs?
added 368 characters in body
Mar
30
asked How can I close all buffers in Emacs?
Feb
26
awarded  Popular Question
Jan
24
awarded  Notable Question
Jan
15
revised Prevent user typing accidental space between rm and wildcard
added 140 characters in body
Jan
15
comment Prevent user typing accidental space between rm and wildcard
It comes down to this: rm can't know if the files its deleting were meant to be deleted. Only the user knows this. Sure, there are some system files and big operations (like deleting /), those are easy. rm can't tell that rm -I stuff.txt just deleted an important phone number, but rm -Ir stuff/ things/ is all temporary junk and cat pictures. Any proxy is going to contain far more false alarms than real ones. Confirmation dialogs come too soon, are too easy to dismiss, and are usually wrong to change the user's thinking from "delete stuff" to "is this stuff important".
Jan
15
comment Prevent user typing accidental space between rm and wildcard
@Kundor Deleting more than three files and deleting recursively (the confirmation is disabled by the habitual -rf I just discovered) are poor proxies for detecting a likely screw up. Wanting to delete a sub-directory isn't a likely screw up. The message doesn't help because it just confirms what the user said to do without adding useful information at a point when the user is not looking to verify. "rm: remove 1 argument recursively?" "Yes, delete the directory, I just told you to do that! ... wait, which directory was that? CRAP!!!"
Jan
15
comment Prevent user typing accidental space between rm and wildcard
@Kundor Yes, and it doesn't change the equation. It probably makes it more likely the user will ignore it. The user has a goal: delete stuff. The prompt says "are you sure you want to delete the stuff you just told me to delete?" The user is still fixated on the goal of deleting stuff, not verifying what is to be deleted, so they say "yes" without thinking. -i might give the user time to change goals. This answer on a related question lays it all out.
Jan
14
revised Prevent user typing accidental space between rm and wildcard
added 386 characters in body; added 35 characters in body
Jan
14
answered Prevent user typing accidental space between rm and wildcard
Jan
9
revised How can I diagnose certain games crashing?
added 42 characters in body
Jan
9
answered How can I diagnose certain games crashing?