Last active
August 29, 2015 14:04
-
-
Save ninowalker/92680743b974130c5efb to your computer and use it in GitHub Desktop.
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
(global-set-key (kbd "C-x C-\\") 'jira-open) | |
(global-set-key (kbd "C-x C-/") 'jira-run) | |
(setq jy_username "...") | |
(setq jy_password "...") | |
(setq jy_server "https://livefyre.atlassian.net") | |
(defun jira-open () | |
(interactive) | |
(shell-command | |
(format "open %s/browse/%s" jy_server (symbol-at-point)))) | |
(global-auto-revert-mode 1) | |
(defun jira-run () | |
(interactive) | |
(setenv "JY_SERVER" jy_server) | |
(setenv "JY_USERNAME" jy_username) | |
(setenv "JY_PASSWORD" jy_password) | |
(shell-command | |
(format "jywriter %s" buffer-file-name)) | |
(revert-buffer t t) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment