Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created April 23, 2011 15:01
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 ongaeshi/938673 to your computer and use it in GitHub Desktop.
Save ongaeshi/938673 to your computer and use it in GitHub Desktop.
Firefox add-on SDK Emacs Setting.
;; シェルを開いてコマンドを実行する
(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