Created
December 19, 2008 15:53
-
-
Save yaotti/38026 to your computer and use it in GitHub Desktop.
This file contains 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
;;; Gisty.el | |
;;; A gisty interface for Emacs | |
(defun gisty-post () | |
(interactive) | |
(let ((filename (buffer-file-name)) | |
(shell-file-name "/bin/zsh")) | |
(start-process-shell-command | |
"gisty" "*gisty*" | |
"gisty" (concat "post " | |
filename)))) | |
(defun gisty-sync () | |
(interactive) | |
(start-process-shell-command | |
"gisty" "*gisty*" | |
"gisty" "sync")) | |
(defun gisty-cd () | |
(interactive) | |
(let* ((result (shell-command-to-string "printenv GISTY_DIR")) | |
(dir (substring result 0 (- (length result) 1)))) ;改行文字の除去 | |
(find-file dir) | |
)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment