Klimi's new dotfiles with stow.
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.

42 regels
1.0 KiB

5 jaren geleden
  1. ;;; nist-webbook.el --- Integration of Emacs with NIST Webbook
  2. ;; Integration of Emacs with NIST webbook
  3. ;;; Commentary:
  4. ;; nist-webbook-name :: search for a chemical name
  5. ;; nist-webbook-formula :: search by chemical formula
  6. ;;; Code:
  7. (require 'org)
  8. (require 'org-ref-utils)
  9. ;;;###autoload
  10. (defun nist-webbook-formula (formula)
  11. "Search NIST webbook for FORMULA."
  12. (interactive "sFormula: ")
  13. (browse-url
  14. (concat
  15. "http://webbook.nist.gov/cgi/cbook.cgi?Formula="
  16. formula
  17. "&NoIon=on&Units=SI")))
  18. ;;;###autoload
  19. (defun nist-webbook-name (name)
  20. "Search NIST webbook for NAME."
  21. (interactive "sChemical Name: ")
  22. (browse-url
  23. (concat "http://webbook.nist.gov/cgi/cbook.cgi?Name="
  24. (url-hexify-string name)
  25. "&Units=SI")))
  26. (org-ref-link-set-parameters "nist-wb-name"
  27. :follow (lambda (name)
  28. (nist-webbook-name name)))
  29. (org-ref-link-set-parameters "nist-wb-formula"
  30. :follow (lambda (formula)
  31. (nist-webbook-formula formula)))
  32. (provide 'nist-webbook)
  33. ;;; nist-webbook.el ends here