aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org3
-rw-r--r--sx-load.el51
-rw-r--r--sx.org10
3 files changed, 62 insertions, 2 deletions
diff --git a/README.org b/README.org
index 460ba34..db47904 100644
--- a/README.org
+++ b/README.org
@@ -36,8 +36,7 @@ As always, =C-h m= is the definitive resource for the functions of this mode.
To install the development version, follow the usual steps:
- Clone this repository
- Add this directory to your ~load-path~
-- Issue ~(require 'sx)~
-- Issue ~(require 'sx-tab)~
+- Issue ~(require 'sx-load)~
This should give you access to the ~sx-tab-~ functions (the main entry points at
this time).
diff --git a/sx-load.el b/sx-load.el
new file mode 100644
index 0000000..e29d439
--- /dev/null
+++ b/sx-load.el
@@ -0,0 +1,51 @@
+;;; sx-load.el --- Load all files of the sx package.
+
+;; Copyright (C) 2014 Artur Malabarba
+
+;; Author: Artur Malabarba <bruce.connor.am@gmail.com>
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;;; Code:
+(mapc #'require
+ '(sx
+ sx-time
+ sx-auth
+ sx-button
+ sx-cache
+ sx-compose
+ sx-encoding
+ sx-favorites
+ sx-filter
+ sx-interaction
+ sx-method
+ sx-networks
+ sx.org
+ sx-question
+ sx-question-list
+ sx-question-mode
+ sx-question-print
+ sx-request
+ sx-site
+ sx-tab
+ ))
+
+(provide 'sx-load)
+;;; sx-load.el ends here
+
+;; Local Variables:
+;; indent-tabs-mode: nil
+;; End:
diff --git a/sx.org b/sx.org
index 78bc5da..e9c1211 100644
--- a/sx.org
+++ b/sx.org
@@ -55,6 +55,14 @@ Emacs conventions. Of course, the core convention of Emacs is
arbitrary customizability -- [[#hooks][hack away]]!
* Basic Usage
+
+** Activation
+
+If you install ~SX~ with ~package-install~, you should have every
+needed command properly autoloaded. If you install it manually,
+require the ~sx-load~ file to make sure everything is correctly
+loaded.
+
** Authenticating
Use ~sx-auth-authenticate~. Calling this function will open up a
webpage on StackExchange that will prompt you to authorize this
@@ -183,6 +191,8 @@ structure. This list is very loosely ordered form low to high-level.
- ~sx-interaction.el~ - Voting, commenting, and otherwise interacting with questions.
- ~sx-tab.el~ - Functions for viewing different tabs.
+- ~sx-load.el~ - Load all files of the sx package. Designed as an easy way in for users who install the package manually (since they don't have autoloads).
+
* COMMENT Local Variables
# LocalWords: StackExchange SX inbox sx API url json inline Org
# LocalWords: Markup keybinding keybindings customizability webpage