[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5acc976 043/177: split symbol reference into separate file
From: |
João Távora |
Subject: |
[elpa] master 5acc976 043/177: split symbol reference into separate file |
Date: |
Sat, 28 Mar 2015 15:40:42 +0000 |
branch: master
commit 5acc976712c39c04bb1035ed92623618b2e25d0b
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
split symbol reference into separate file
---
doc/index.org | 33 ++++++++++++++++-----------------
doc/org-setup.inc | 3 +++
doc/snippet-reference.org | 12 ++++++++++++
3 files changed, 31 insertions(+), 17 deletions(-)
diff --git a/doc/index.org b/doc/index.org
index 055013b..e06f715 100644
--- a/doc/index.org
+++ b/doc/index.org
@@ -2,6 +2,8 @@
#+OPTIONS: toc:1
#+STARTUP: showall
+#+SETUPFILE: org-setup.inc
+
* Quick start
*YASnippet* is a template system for Emacs. It allows you to type an
@@ -36,7 +38,7 @@
#+end_src
Add your own snippets to =~/.emacs.d/snippets= by placing files there or
- invoking [[#yas-new-snippet][=yas-new-snippet=]].
+ invoking [[sym:yas-new-snippet][=yas-new-snippet=]].
** Import textmate snippets (rails example)
:PROPERTIES:
@@ -73,7 +75,7 @@
Please *do not ask me* to add snippets to the default collection under
=/snippets=. This collection is considered frozen. By customizing
- [[#yas-snippet-dirs][=yas-snippet-dirs=]] you can point yasnippet to good
+ [[sym:yas-snippet-dirs][=yas-snippet-dirs=]] you can point yasnippet to good
snippet collections out there.
The =extras/textmate-import.rb= tool can import many actual Textmate
@@ -111,6 +113,12 @@
snippets.
#+END_QUOTE
+ 5. [[file:snippet-reference.org][YASnippet Symbol Reference]]
+ #+BEGIN_QUOTE
+ An automatically generated listing of all YASnippet commands,
+ (customization) variables, and functions.
+ #+END_QUOTE
+
** Bugs, discussion, contributions, etc
If you think you've found a bug, please report it on
[[https://github.com/capitaomorte/yasnippet/issues][the GitHub issue tracker]]
@@ -143,10 +151,10 @@
** Setting up =yas-snippet-dirs=
- The emacs variable [[#yas-snippet-dirs][=yas-snippet-dirs=]] tells YASnippet
+ The emacs variable [[sym:yas-snippet-dirs][=yas-snippet-dirs=]] tells
YASnippet
which collections to consider. It's used when you activate
- [[#yas-global-mode][=yas-global-mode=]] or call
- [[#yas-reload-all][=yas-reload-all=]] interactively.
+ [[sym:yas-global-mode][=yas-global-mode=]] or call
+ [[sym:yas-reload-all][=yas-reload-all=]] interactively.
The default considers:
@@ -168,7 +176,7 @@
#+end_src
Collections appearing earlier in the list shadow snippets with same names
- appearing in collections later in the list.
[[#yas-new-snippet][=yas-new-snippet=]] always stores
+ appearing in collections later in the list.
[[sym:yas-new-snippet][=yas-new-snippet=]] always stores
snippets in the first collection.
** The =.yas-parents= file
@@ -249,7 +257,7 @@
To make a snippet expand after the cursor:
- * Type the snippet's *trigger key* then calling
[[#yas-expand][=yas-expand=]]. It's bound to
+ * Type the snippet's *trigger key* then calling
[[sym:yas-expand][=yas-expand=]]. It's bound to
=TAB= and =<tab>= by default, to change it use
#+begin_src emacs-lisp :exports code
@@ -260,7 +268,7 @@
* Use the snippet's *keybinding*.
- * Call [[#yas-insert-snippet][=yas-insert-snippet=]] (use =M-x
+ * Call [[sym:yas-insert-snippet][=yas-insert-snippet=]] (use =M-x
yas-insert-snippet== or its keybinding =C-c & C-s=).
* By expanding directly from the "YASnippet" menu in the menu-bar
@@ -269,15 +277,6 @@
* Use m2m's excellent auto-complete
-* Reference
-#+BEGIN_SRC emacs-lisp :exports results :results value raw
-(yas--document-symbols 2 `("Interactive functions" . ,#'interactive-form)
- `("Customization variables" . ,#'(lambda (sym)
- (and (boundp sym)
- (get sym
'standard-value))))
- `("Useful functions" . ,#'fboundp)
- `("Useful variables" . ,#'boundp))
-#+END_SRC
# Local Variables:
# mode: org
# fill-column: 80
diff --git a/doc/org-setup.inc b/doc/org-setup.inc
new file mode 100644
index 0000000..aa2380a
--- /dev/null
+++ b/doc/org-setup.inc
@@ -0,0 +1,3 @@
+# -*- mode: org -*-
+
+#+LINK: sym file:snippet-reference.org::#%s
diff --git a/doc/snippet-reference.org b/doc/snippet-reference.org
new file mode 100644
index 0000000..14fef9e
--- /dev/null
+++ b/doc/snippet-reference.org
@@ -0,0 +1,12 @@
+#+STARTUP: showall
+
+* Reference
+#+BEGIN_SRC emacs-lisp :exports results :results value raw
+(yas--document-symbols 2 `("Interactive functions" . ,#'interactive-form)
+ `("Customization variables" . ,#'(lambda (sym)
+ (and (boundp sym)
+ (get sym
'standard-value))))
+ `("Useful functions" . ,#'fboundp)
+ `("Useful variables" . ,#'boundp))
+#+END_SRC
+
- [elpa] master fdd550a 035/177: Fix screencast link., (continued)
- [elpa] master fdd550a 035/177: Fix screencast link., João Távora, 2015/03/28
- [elpa] master bc4cfbb 033/177: yas/ -> yas-, João Távora, 2015/03/28
- [elpa] master b20f0a4 034/177: fix exporting of doc strings for org manual, João Távora, 2015/03/28
- [elpa] master f5457df 031/177: Go back to org manual, João Távora, 2015/03/28
- [elpa] master 0f67c07 030/177: Merge pull request #424 from ljos/de/activate-extra-mode, João Távora, 2015/03/28
- [elpa] master 8e8320f 036/177: remove reference to yas-trigger-key, João Távora, 2015/03/28
- [elpa] master 042837d 038/177: Migrate to snippets maintained by the TextMate community, João Távora, 2015/03/28
- [elpa] master 81e26b4 039/177: Merge pull request #431 from ignisf/update-snippet-submodules, João Távora, 2015/03/28
- [elpa] master c7c6516 040/177: don't use link abbreviations, João Távora, 2015/03/28
- [elpa] master d451fef 041/177: rename manual.org to index.org, João Távora, 2015/03/28
- [elpa] master 5acc976 043/177: split symbol reference into separate file,
João Távora <=
- [elpa] master fd8423c 045/177: fix links, João Távora, 2015/03/28
- [elpa] master 7b82424 046/177: move index.org subsection into snippet-expansion.org, João Távora, 2015/03/28
- [elpa] master 3002594 037/177: Merge pull request #430 from npostavs/org-doc, João Távora, 2015/03/28
- [elpa] master 875ef77 044/177: move index.org subsection into snippet-organization.org, João Távora, 2015/03/28
- [elpa] master 2f7bb6c 048/177: move images to the section they describe, João Távora, 2015/03/28
- [elpa] master 8f1fa08 049/177: replace obsolete refs, João Távora, 2015/03/28
- [elpa] master 08a44b4 050/177: add code examples for snippet-expansion.rst, João Távora, 2015/03/28
- [elpa] master dfdb89c 054/177: remove erroneous #+BEGIN/END_QUOTE, João Távora, 2015/03/28
- [elpa] master eaeb6ff 051/177: more links to docstrings, don't repeat docstrings, João Távora, 2015/03/28
- [elpa] master 07b1d39 056/177: move #+STARTUP to org-setup.inc; add #+LINK_HOME, João Távora, 2015/03/28