Created
February 5, 2018 07:33
-
-
Save dustinlacewell-wk/053edf6a233fcb0c7729d0b80fa3c61b 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
**** 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