hjertnes.blog

New blogs

22.01.2018 01:00

I started a daily JavaScript focused blog in November. Single topic blog posts, sometimes larger series of blog posts if the subject matter is big. Monday through Friday.

And I have also started to hang out over at Micro.blog. You can find me at https://micro.blog/hjertnes or Hjertnes.social or think Twitter, but driven by blogs and rss; with some nice Magic by Manton Reece to make it function more like a social network.

Spacemacs

22.01.2018 01:00

Emacs is a very powerful editor. Much more powerful than anything I have used before.

And it is the kind of tool that begs to be extended.

If you need Emacs to do anythning, you can just write a emacs-lisp function that does that.

You have some core concepts, and a lot of lisp functions that you can use when they are needed.

What most people call the “window” is called the frame, and a window can be divided into any number of windows. Then you can open buffers(files, unsaved files or interactive buffers like shells and repls or even user interface and small applications). Then you can place any buffer in any window. This is much more powerful than the usual files and tabs metphor. It also enables you to do some interesitng stuff like having multiple windows with the same file; useful if you need to look at the top while editing the bottom.

Emacs has some very powerful keyboards shortcuts. Some of them are configuration depended; or all of them are. And some of them depends on the mode emacs is in. You can add modes for dealing with certain file types. The keyboard shortcuts might be the same or very similar for building / compiling source code, but the code behind the mode takes care of what to do.

The core of the power of emacs is Emacs Lisp. It is the programming language most of emacs is written in. And all extentions to emacs is written in. You also use to configure emacs. The idea is that when you run a keyboard shortcut, it is just running the lisp function that shortcut is mapped it. And you can also enter Emacs Command mode and just run any command available.

And it is very easy to add your own, you just have to define it in a .el file and load it in your config. If you for example want to be able to post to Twitter from a emacs buffer, you could just write or find some emacs lisp function for doing that.

What’s next

22.01.2018 01:00

The React Introduction is done as far as I’m concerned, at least for now. I’m probably going to write more about react from time to time as I come over cool new stuff. And I’m going to put together a full fledged example projects incorporating what I have written about here in a not too distant future. And I will probably also bring up some stuff I forgot to write about here.

#

21.01.2018 01:00

[@jack]1 your 56mm is the apd or non APD?

#

21.01.2018 01:00

What’s the go to WordPress client on iOS these days?

#

21.01.2018 01:00

[@manton]1 have you gotten a chance to take a look at my 24 hour clock feature request?

#

21.01.2018 01:00

I’d pay good money for an iOS version of MarsEdit

#

21.01.2018 01:00

#

21.01.2018 01:00

#

21.01.2018 01:00

Let’s see if it works like I wanted it to this time?