Using lobste.rs node with Emacs

medimatrix edited this page Nov 11, 2014 · 3 revisions

First, clone this repo somewhere. A good place might be ~/code/node/lobste.rs.

git clone https://github.com/medimatrix/lobste.rs-node.git ~/code/node/lobste.rs

Then, create a file called lobsters.el in your ~/.emacs.d folder.

Put the following inside it:

(defun lobsters ()
  (interactive)
  (with-output-to-temp-buffer "*lobsters*"
    (switch-to-buffer "*lobsters*")
    (insert
     (shell-command-to-string "node ~/code/node/lobste.rs/example.js"))))

(provide 'lobsters)

Finally, add (require 'lobsters "~/.emacs.d/lobsters.el") to your emacs config file.

You can run the function using M-x lobsters.

Screenshot of lobsters in Emacs

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.