Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I cannot get it to work with M-x new-day, is there something other I need to do than have the document open? Thanks for sharing btw.


You need to evaluate the lisp at the bottom of the file, so that `M-x new-day`, `M-x today` and the other stuff gets loaded.

I've got a bit of code in my init-files that does that automatically, that's linked to in the readme. But as a quick alternative you can scroll down to the end, to the line that starts:

    "(defun new-day"
Select that line, and all the way down to the line that reads "(require 'ob-org)", and then run "M-x eval-region". That will evaluate the region and make the two new commands available.

Otherwise copy and paste the lisp from here into your emacs init file, and reload everything:

https://github.com/skx/dotfiles/blob/master/.emacs.d/init.md...

That will cause anything named `skx-startblock` to be evaluated automatically from an org-file on-load, and will also run the contents of `skx-saveblock` before saving any org-file, if present.


I saw now that I have to evaluate two lines of code, how do I set up my dot-files so that this happens? I am kinda lost.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: