How can I split the conkeror-rc config into multiple files?
Short version: can you help me complete this code?
var conkeror_settings_dir = ".conkeror.mozdev.org/settings";
function load_all_js_files_in_dir (dir) {
var full_path = get_home_directory().appendRelativePath(dir);
// YOUR CODE HERE
}
load_all_js_files_in_dir(conkeror_settings_dir);
Background
I am trying to use Conkeror for web browsing. It is an emacs-like browser running on the Mozilla rendering engine using javascript as its configuration language (filling in the role elisp plays for emacs). In my emacs config, I split my settings into multiple files, where each file is a single set of related options (for example, all my perl related options can be in perl-settings.el
. All of these settings files are loaded automatically by a function in mine .emacs
, which is just loads each elisp file into my "settings" directory.
I want to structure my Conkeror config the same way my main conkeror-rc file is basically a stub that loads all js files in a specific directory relative to my home directory. Unfortunately, I'm much less javascript literate than elisp, so I don't even know how to "point" the file.
a source to share