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

;;; ol-sflogin.el --- Support for links to auto-login to Salesforce
;;; Commentary:
;;; Code:
(require 'ol)
(defun org-sflogin-complete (result)
"Login to SF is complete with RESULT."
(message "Launching Org in Browser..."))
(defun org-sflogin-command (username)
"The command used to login to salesforce with USERNAME directly."
(message "Logging into Salesforce...")
(async-start-process "sfdx:login" "sfdx" 'org-sflogin-complete "force:org:open" "-u" username))
(org-link-set-parameters "sflogin"
:follow #'org-sflogin-command)
(provide 'ol-sflogin)
;;; ol-sflogin.el ends here