Guest User

Untitled

a guest
Feb 17th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. **** hydra-aws-account
  2. #+begin_src emacs-lisp
  3. (defun hydra-aws-account--set-account (account)
  4. '(lambda () (interactive)
  5. (message "WTF")
  6. (hydra-aws/body)
  7. (setq org-ls-aws--current-account account)))
  8.  
  9. (defhydra hydra-aws-account
  10. (:hint nil :color red)
  11. "
  12. ╭─────────────┐
  13. │ AWS Account │
  14. ╭──────────────┴─────────────╯
  15. [_d_] dev
  16. [_p_] prod
  17. [_c_] corp
  18. _<f19>_ to close
  19. ─────────────────────────────
  20. %s(org-ls-aws-current-account) %s(org-ls-aws-current-region)"
  21. ("d" (hydra-aws-account--set-account :dev))
  22. ("p" (hydra-aws-account--set-account :prod))
  23. ("c" (hydra-aws-account--set-account :corp))
  24. ("<f19>" nil))
  25. #+end_src
Add Comment
Please, Sign In to add comment