Created
February 17, 2014 03:39
-
-
Save 10long/9044317 to your computer and use it in GitHub Desktop.
geeknote call inside emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; geeknote ============================================================== | |
(defun geeknote-mode () | |
(interactive) | |
(eshell-command "python ~/geeknote/geeknote.py settings --editor /Applications/Emacs.app/Contents/MacOS/bin/emacsclient") | |
) | |
(defun geeknote-create (newnote) | |
(interactive "sname: ") | |
(eshell-command | |
(format "python ~/geeknote/geeknote.py create --content WRITE --title %s" newnote)) | |
) | |
(defun geeknote-show (newnote) | |
(interactive "sname: ") | |
(eshell-command | |
(format "python ~/geeknote/geeknote.py show %s" newnote)) | |
) | |
(defun geeknote-edit (newnote) | |
(interactive "sname: ") | |
(eshell-command | |
(format "python ~/geeknote/geeknote.py edit --note %s" newnote)) | |
) | |
(defun geeknote-remove (newnote) | |
(interactive "sname: ") | |
(eshell-command | |
(format "python ~/geeknote/geeknote.py remove --note %s" newnote)) | |
) | |
(defun geeknote-find (keyword) | |
(interactive "skeyword: ") | |
(eshell-command | |
(format "python ~/geeknote/geeknote.py find --search %s" keyword)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment