News for hackers. Stuff that matters.
Re:Ask HN: Programs that saved you 100 hours? by Ozlone on Sunday April 12, 2020 @09:59PM (#22852438)
- Emacs (with evil mode) and org-mode. The hours gained far outweigh the hours put in (and the hours put in were fun).

- Yabai on mac for not having to think about moving windows around.

- Pomodoro (now through org-mode) for helping focus (and saving hours, in a round-about-way.)

- Removing as much advertising from my life as possible. (Ublock origin, deleting social networks when possible)

Re:Ask HN: Programs that saved you 100 hours? by geniium on Monday April 13, 2020 @01:30AM (#22853423)
Didn't know Yabai! Thanks for sharing. Will have a look at it and probably give it a try.

I am using Amethyst [1] right now as a "tile" window manager which is easy to set up and works as intended.

[1] : https://ianyh.com/amethyst/

Re:Ask HN: Programs that saved you 100 hours? by mpwoz on Monday April 13, 2020 @05:04PM (#22859953)
I've been using Spectacle [1] for 3 years now and it's been great. Note: it appears to have been discontinued in favor of Rectangle [2]

It's the first thing I landed on after switching to primarily OSX at work (I used i3 when I had a Linux dev box) so I'm not sure if it's the best among the alternatives; but I've been pretty happy with it.

[1]: https://www.spectacleapp.com/

[2]: https://rectangleapp.com/

Re:Ask HN: Programs that saved you 100 hours? by geniium on Monday April 13, 2020 @07:37PM (#22861373)
Another great tool is Hammerspoon [1] for Mac. It has a lot of plugin and allowed me to get rid of a lot of small tools. It’s free and open source. It allows me to set key shortcut for my app, windows manager, timer “à la pomodoro”, caféine (screen does not go to sleep), etc... cannot live without it!

[1] https://www.hammerspoon.org

Re:Ask HN: Programs that saved you 100 hours? by sudeepto_dutta on Sunday April 12, 2020 @11:30PM (#22852950)
How is your experience with Yabai ? I just read about it but reluctant to try it . How stable is it ? Can we switch spaces with it ?
Re:Ask HN: Programs that saved you 100 hours? by Ozlone on Monday April 13, 2020 @07:53AM (#22854997)
It's great. So far so good. I think I can switch spaces using skhd (by the same developer) [1] alongside it. I can definitely send windows to spaces, but still use ctrl + right/left arrow to navigate spaces. [1] https://github.com/koekeishiya/skhd
Re:Ask HN: Programs that saved you 100 hours? by ckolkey on Monday April 13, 2020 @01:57AM (#22853503)
It's perfectly stable, but I didn't see it do anything that Amethyst can't do, and yabai requires you to run with SIP disabled
Re:Ask HN: Programs that saved you 100 hours? by iamuser4 on Monday April 13, 2020 @02:18PM (#22858408)
I run yabai just fine with SIP disabled.

You only need to disable SIP if you want features that require it like window opacity/stickyness/...

Re:Ask HN: Programs that saved you 100 hours? by arkanciscan on Monday April 13, 2020 @01:32AM (#22853429)
Any idea how to delete this social network (hacker news)? It's the last one I still use.
Re:Ask HN: Programs that saved you 100 hours? by fragmede on Monday April 13, 2020 @04:13AM (#22854020)
Set `noprocrast` in your profile to `yes`.
Re:Ask HN: Programs that saved you 100 hours? by m463 on Monday April 13, 2020 @07:34AM (#22854899)
I had to look it up. very fun.

There are three new fields in your profile, noprocrast, maxvisit, and minaway. (You can edit your profile by clicking on your username.) Noprocrast is turned off by default. If you turn it on by setting it to "yes," you'll only be allowed to visit the site for maxvisit minutes at a time, with gaps of minaway minutes in between. The defaults are 20 and 180, which would let you view the site for 20 minutes at a time, and then not allow you back in for 3 hours. You can override noprocrast if you want, in which case your visit clock starts over at zero.

Re:Ask HN: Programs that saved you 100 hours? by Ozlone on Monday April 13, 2020 @07:54AM (#22855002)
Same, mostly, other than the fediverse. Anything with ads and targeted marketing is more the problem, imo.
Re:Ask HN: Programs that saved you 100 hours? by clarry on Monday April 13, 2020 @07:19AM (#22854817)
I tried to look for a way to delete my account yesterday but I did not find such a thing :<
Re:Ask HN: Programs that saved you 100 hours? by wwweston on Sunday April 12, 2020 @10:13PM (#22852506)
Anyone know what the best way to set up Emacs on macOS is?
Re:Ask HN: Programs that saved you 100 hours? by dnhz on Monday April 13, 2020 @12:37AM (#22853219)
I just use this version. https://emacsformacosx.com/ I have a one line shell script that then lets me start Emacs from the cmd line. something like

    open -A [path to applications/emacs startup] $@
This supports emacs —daemon
Re:Ask HN: Programs that saved you 100 hours? by m463 on Monday April 13, 2020 @07:43AM (#22854936)
That is what I use.

Additionally in my .bashrc I have:

  EMACS="/Applications/Emacs.app/Contents/MacOS/Emacs"
  EMACSPOS="-g 140x66+655+23 --fullheight"
  e() { ( $EMACS $EMACSPOS "$@" & ) }
I also have it in the dock, but sometimes environment variables are not set up properly.

For this case, I create a plist file ~/.MacOSX/environment.plist and can add stuff to it like this:

    add_plist PATH "$PATH"
where:

  add_plist () {
    /usr/libexec/PlistBuddy -c 'Delete :'"$1" ~/.MacOSX/environment.plist >/dev/null
    /usr/libexec/PlistBuddy -c 'Add :'"$1"' string "'"$2"'"' ~/.MacOSX/environment.plist >/dev/null
  }
Re:Ask HN: Programs that saved you 100 hours? by dnhz on Monday April 13, 2020 @09:29AM (#22855641)
I wrote the last reply from my phone. The command is simply

/Applications/Emacs.app/Contents/MacOS/Emacs “$@“

The script goes into /usr/local/bin or wherever that’s in your path.

Re:Ask HN: Programs that saved you 100 hours? by Arubis on Sunday April 12, 2020 @10:27PM (#22852595)
Best is subjective, but my current go-to is:

```

$ brew tap d12frosted/emacs-plus

$ brew install emacs-plus [options]

```

Cf. https://github.com/d12frosted/homebrew-emacs-plus

Re:Ask HN: Programs that saved you 100 hours? by chiefsucker on Monday April 13, 2020 @01:29AM (#22853419)
I use the “Emacs Mac Port” which is available via Homebrew.

https://github.com/railwaycat/homebrew-emacsmacport

Re:Ask HN: Programs that saved you 100 hours? by ddavis on Sunday April 12, 2020 @11:53PM (#22853038)
I keep a clone of the main GNU Emacs git repository and build the emacs-27 branch (27 is the upcoming release) every few days on my MacBook (and the master branch on my Linux workstation).