Skip to content

preavy/procrast.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

procrast.el

Block yourself from reading web-sites.

Edit your hosts file with a list of DNS names, which start with procrast_start and end with procrast_end. For example:

# procrast_start
# 127.0.0.1	facebook.com
# 127.0.0.1	youtube.com
# 127.0.0.1	news.ycombinator.com
# 127.0.0.1	reddit.com
# 127.0.0.1	feedly.com
# procrast_end

Plunk the code from procrast.el into your init.el.

You might want to edit the path to the hosts file.

Then every time you call M-x toggle-procrast you can block/unblock the sites.

About

Emacs defun to toggle DNS names in hosts file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published