Skip to content

Instantly share code, notes, and snippets.

@avendael
Forked from 10long/geeknote.el
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avendael/54b37c06cf86751a8d48 to your computer and use it in GitHub Desktop.
Save avendael/54b37c06cf86751a8d48 to your computer and use it in GitHub Desktop.
;; 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