Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created February 5, 2018 07:33
Show Gist options
  • Save dustinlacewell-wk/053edf6a233fcb0c7729d0b80fa3c61b to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/053edf6a233fcb0c7729d0b80fa3c61b to your computer and use it in GitHub Desktop.
**** hydra-aws-account
#+begin_src emacs-lisp
(defun hydra-aws-account--set-account (account)
'(lambda () (interactive)
(message "WTF")
(hydra-aws/body)
(setq org-ls-aws--current-account account)))
(defhydra hydra-aws-account
(:hint nil :color red)
"
╭─────────────┐
│ AWS Account │
╭──────────────┴─────────────╯
[_d_] dev
[_p_] prod
[_c_] corp
_<f19>_ to close
─────────────────────────────
%s(org-ls-aws-current-account) %s(org-ls-aws-current-region)"
("d" (hydra-aws-account--set-account :dev))
("p" (hydra-aws-account--set-account :prod))
("c" (hydra-aws-account--set-account :corp))
("<f19>" nil))
#+end_src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment