Skip to content

Instantly share code, notes, and snippets.

@ninowalker
Last active August 29, 2015 14:04
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 ninowalker/92680743b974130c5efb to your computer and use it in GitHub Desktop.
Save ninowalker/92680743b974130c5efb to your computer and use it in GitHub Desktop.
(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