hjertnes.blog

#

23.11.2017 01:00

I’m not a fan of Turkey; neither the country or the dinner.

#

22.11.2017 01:00

It snowed tonight, the big question at hand: when will it rain and turn it into a living hell?

#

21.11.2017 01:00

I’m really enjoying the audiobook of Joe Biden’s book.

#

21.11.2017 01:00

#

20.11.2017 01:00

Hello World

#

20.11.2017 01:00

Hello Spacemacs

#

20.11.2017 01:00

So, I decided to finally write a emacs command to post to Micro.blog.

This is how it works: write what you want to post in a buffer, M-x (space space) post2mb.

First, open a terminal and cd ~/.emacs.d/private && wget raw.githubusercontent.com/tkf/emacs… && wget gist.githubusercontent.com/hjertnes/…

Then, open ~/emacs.d/private/mb.el and find the following line :headers ‘((“Authorization” . “Bearer”)), you need to add a app token after Bearer; make sure there is a space between Bearer and your token.

Finally you need to open your spacemacs config: ~/.spacemacs, find the user-config and add the following two lines to it:

(load “~/.emacs.d/private/request.el”)

(load “~/.emacs.d/private/mb.el”)

Restar emacs an you should be set. Just open a new buffer, start writing and hit SPC SPC post2mb when you’re ready to post.

#

20.11.2017 01:00

Android fans, I’m sorry, but I can’t stand material design. It’s not bad, just not for me.

#

18.11.2017 01:00

#

17.11.2017 01:00