Klimi's new dotfiles with stow.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

42 linhas
1.0 KiB

há 4 anos
  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