stackoverflow.el 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ;; --- StackOverflow configuration file ---
  2. ;; Set up integration with stack overflow.
  3. (require 'package-loader)
  4. (let ((provided-commands
  5. '(sx-accept
  6. sx-answer
  7. sx-ask
  8. sx-authenticate
  9. sx-bug-report
  10. sx-button-copy
  11. sx-button-edit-this
  12. sx-button-follow-link
  13. sx-cache-invalidate-all
  14. sx-comment
  15. sx-compose-insert-tags
  16. sx-compose-mode
  17. sx-compose-quit
  18. sx-compose-send
  19. sx-delete
  20. sx-display
  21. sx-display-question
  22. sx-downvote
  23. sx-edit
  24. sx-favorite
  25. sx-inbox
  26. sx-inbox-mode
  27. sx-inbox-notifications
  28. sx-open-link
  29. sx-question-list-hide
  30. sx-question-list-mark-read
  31. sx-question-list-mode
  32. sx-question-list-next
  33. sx-question-list-next-far
  34. sx-question-list-next-page
  35. sx-question-list-order-by
  36. sx-question-list-previous
  37. sx-question-list-previous-far
  38. sx-question-list-refresh
  39. sx-question-list-switch-site
  40. sx-question-list-view-next
  41. sx-question-list-view-previous
  42. sx-question-mode
  43. sx-question-mode-hide-show-section
  44. sx-question-mode-next-section
  45. sx-question-mode-order-by
  46. sx-question-mode-previous-section
  47. sx-question-mode-refresh
  48. sx-search
  49. sx-search-tag-at-point
  50. sx-star
  51. sx-tab-all-questions
  52. sx-tab-featured
  53. sx-tab-frontpage
  54. sx-tab-hot
  55. sx-tab-month
  56. sx-tab-newest
  57. sx-tab-starred
  58. sx-tab-topvoted
  59. sx-tab-unanswered
  60. sx-tab-unanswered-my-tags
  61. sx-tab-week
  62. sx-upvote
  63. sx-version
  64. sx-visit-externally)))
  65. (use-package sx
  66. ;; TODO: More keybindings if useful
  67. :bind (("C-c C-q" . sx-search))
  68. :config
  69. (defvar sx-dir (concat user-emacs-directory ".sx"))
  70. (if (file-exists-p sx-dir)
  71. (and (shell-command (concat "chmod 700 " sx-dir))
  72. (shell-command (concat "chmod 600 " sx-dir "/*.el")))
  73. )
  74. :commands provided-commands))
  75. (provide 'stackoverflow)