My attempt to optimize my emacs load time <1 second
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
622 B

  1. ;;; ol-sflogin.el --- Support for links to auto-login to Salesforce
  2. ;;; Commentary:
  3. ;;; Code:
  4. (require 'ol)
  5. (defun org-sflogin-complete (result)
  6. "Login to SF is complete with RESULT."
  7. (message "Launching Org in Browser..."))
  8. (defun org-sflogin-command (username)
  9. "The command used to login to salesforce with USERNAME directly."
  10. (message "Logging into Salesforce...")
  11. (async-start-process "sfdx:login" "sfdx" 'org-sflogin-complete "force:org:open" "-u" username))
  12. (org-link-set-parameters "sflogin"
  13. :follow #'org-sflogin-command)
  14. (provide 'ol-sflogin)
  15. ;;; ol-sflogin.el ends here