From: Andreas Gerler Date: Thu, 20 Aug 2015 14:24:11 +0000 (+0200) Subject: add yasnippets info table for org-mode. X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=fb59879338d77dc72f0c32c147863112d907e252;p=emacsconfig.git add yasnippets info table for org-mode. - bound to C-c C-y in org-mode. --- diff --git a/bba.org b/bba.org index 5671c5ad..0e6c8237 100644 --- 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 index 00000000..9a6ed6df --- /dev/null +++ b/snippets/org-mode.org @@ -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 | +|