Created
April 23, 2011 15:01
-
-
Save ongaeshi/938673 to your computer and use it in GitHub Desktop.
Firefox add-on SDK Emacs Setting.
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
;; シェルを開いてコマンドを実行する | |
(defun exec-shell (command &optional silent-exec) | |
(let ((buffer (current-buffer))) | |
(shell) | |
(insert-string command) | |
(comint-send-input) | |
(if (null silent-exec) | |
() | |
(switch-to-buffer buffer) | |
) | |
) | |
) | |
;;-------------------------------------------------------------------------- | |
;;Add-on SDK | |
;;------------------------------------------------------------------------- | |
(defun cfx-start() | |
(interactive) | |
(exec-shell "cd ~/app/addon-sdk-1.0b4/; source bin/activate" nil)) | |
(defun cfx-run() | |
(interactive) | |
(exec-shell "cfx run" t)) | |
(defun cfx-test() | |
(interactive) | |
(exec-shell "cfx test" t)) | |
(global-set-key (kbd "C-c C-c") 'cfx-test) | |
(global-set-key (kbd "C-c C-v") 'cfx-run) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment