]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
add yasnippets info table for org-mode.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 20 Aug 2015 14:24:11 +0000 (16:24 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 20 Aug 2015 14:24:11 +0000 (16:24 +0200)
- bound to C-c C-y in org-mode.

bba.org
snippets/org-mode.org [new file with mode: 0644]

diff --git a/bba.org b/bba.org
index 5671c5ada8e46c7019181cf16c15855752a21e60..0e6c82377dc42cc24041aebe10d92a4526a0bdf0 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -885,12 +885,15 @@ taken from http://doc.norang.ca/org-mode.org
                   (lambda ()
                     (auto-fill-mode)
                     (flyspell-mode)
+                    (define-key org-mode-map "\C-h\C-y" '(lambda () (interactive) (find-file "~/.emacs.d/snippets/org-mode.org")))
+
                     ))
         )
     (progn
       (add-hook 'org-mode-hook
                 (lambda ()
-                  (auto-fill-mode))
+                  (auto-fill-mode)
+                  (define-key org-mode-map "\C-h\C-y" '(lambda () (interactive) (find-file "~/.emacs.d/snippets/org-mode.org"))))
                 ))
 
     )
diff --git a/snippets/org-mode.org b/snippets/org-mode.org
new file mode 100644 (file)
index 0000000..9a6ed6d
--- /dev/null
@@ -0,0 +1,12 @@
+|--------------+-------------+------------------------------------------------------|
+| snippet name | keyword     | description                                          |
+|--------------+-------------+------------------------------------------------------|
+| babel-sh     | babel-shell | skeleton to generate a sh file out of an org file    |
+| blog         | blog        | skeleton for a blog entry                            |
+| sqlmysql     | sqlmysql    | properties to connect to MySQL via org               |
+| sqlora       | sqlora      | properties to connect to Oracle via org and Perl DBI |
+| <sclient     | srcclient   | SRC snippet executable on a shell session            |
+| <ssession    | srcsession  | create a shell session and connect to a host via ssh |
+| table2       | table2      | create org table with name and Amount Summary        |
+| title        | title       | skeleton for TITLE                                   |
+|--------------+-------------+------------------------------------------------------|