1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-02 07:50:04 +03:00

added share/emacs.txt

This commit is contained in:
Igor Chubin 2017-05-30 17:24:50 +00:00
parent b13bc70d14
commit 1b112873e8

15
share/emacs.txt Normal file
View File

@ -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))