Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUsing lobste.rs node with Emacs
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.
Press h to open a hovercard with more details.
