Browse Source

Started working on redocumenting

Samuel W. Flint 7 years ago
parent
commit
0ddf56a074
1 changed files with 10 additions and 1 deletions
  1. 10 1
      README.md

+ 10 - 1
README.md

@@ -1,8 +1,9 @@
 This is Buffer Layers, a simple, layer-based buffer management system.
 
-It works by defining buffer layers using a fairly simple macro.  An example is as follows:
+It works by defining buffer layers using a fairly simple macro.  The following would be put in a file called `org.layer`
 
 ```elisp
+;; -*- emacs-lisp -*-
 (define-buffer-layer org
   :files ("~/org/"
           "~/org/main.org")
@@ -10,3 +11,11 @@ It works by defining buffer layers using a fairly simple macro.  An example is a
   :run-on-apply ((my/find-current-notes-file)))
 ```
 
+It can be loaded with `(load-buffer-layer "/path/to/org.layer" nil)`.  If the final `nil` is changed to true, it will load and apply the layer.
+
+To manipulate buffer layers, execute `buffer-layer-mode`, and then you can use the following keybindings:
+
+ - `C-x L l` Load a buffer layer, if defined, otherwise, load from the given file.
+ - `C-x L u` Unload a loaded buffer layer.
+ - `C-x L U` Unload all loaded buffer layers.
+ - `C-x L L` List defined buffer layers, noting if they've been applied.