From 1b112873e8d23fed1e87d3c1e87335d92b94b2ef Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 30 May 2017 17:24:50 +0000 Subject: [PATCH] added share/emacs.txt --- share/emacs.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 share/emacs.txt diff --git a/share/emacs.txt b/share/emacs.txt new file mode 100644 index 0000000..adcd9d4 --- /dev/null +++ b/share/emacs.txt @@ -0,0 +1,15 @@ +; +; Written by RenJMR +; + +(defun ejmr-search-cheat-sh () + "Search `http://cheat.sh/' for help on commands and code." + (interactive) + (ivy-read "Command or Topic: " + (process-lines "curl" "--silent" "http://cheat.sh/:list?T&q") + :require-match t + :sort t + :history 'ejmr-search-cheat-sh + :action (lambda (input) + (browse-url (concat "http://cheat.sh/" input "?T&q"))) + :caller 'ejmr-search-cheat-sh))