;; --- StackOverflow configuration file --- ;; Set up integration with stack overflow. (require 'package-loader) (let ((provided-commands '(sx-accept sx-answer sx-ask sx-authenticate sx-bug-report sx-button-copy sx-button-edit-this sx-button-follow-link sx-cache-invalidate-all sx-comment sx-compose-insert-tags sx-compose-mode sx-compose-quit sx-compose-send sx-delete sx-display sx-display-question sx-downvote sx-edit sx-favorite sx-inbox sx-inbox-mode sx-inbox-notifications sx-open-link sx-question-list-hide sx-question-list-mark-read sx-question-list-mode sx-question-list-next sx-question-list-next-far sx-question-list-next-page sx-question-list-order-by sx-question-list-previous sx-question-list-previous-far sx-question-list-refresh sx-question-list-switch-site sx-question-list-view-next sx-question-list-view-previous sx-question-mode sx-question-mode-hide-show-section sx-question-mode-next-section sx-question-mode-order-by sx-question-mode-previous-section sx-question-mode-refresh sx-search sx-search-tag-at-point sx-star sx-tab-all-questions sx-tab-featured sx-tab-frontpage sx-tab-hot sx-tab-month sx-tab-newest sx-tab-starred sx-tab-topvoted sx-tab-unanswered sx-tab-unanswered-my-tags sx-tab-week sx-upvote sx-version sx-visit-externally))) (use-package sx ;; TODO: More keybindings if useful :bind (("C-c C-q" . sx-search)) :config (defvar sx-dir (concat user-emacs-directory ".sx")) (if (file-exists-p sx-dir) (and (shell-command (concat "chmod 700 " sx-dir)) (shell-command (concat "chmod 600 " sx-dir "/*.el"))) ) :commands provided-commands)) (provide 'stackoverflow)