From: Andreas Gerler Date: Wed, 13 May 2015 22:29:30 +0000 (+0200) Subject: A little bit of documentation for bba.org X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=247f1b5d63e03aa6cc6be99c10d2e2075440c9ba;p=emacsconfig.git A little bit of documentation for bba.org Signed-off-by: Andreas Gerler --- diff --git a/bba.org b/bba.org index 1f1ec520..3cdc1847 100644 --- a/bba.org +++ b/bba.org @@ -70,6 +70,9 @@ If you are in need enable debugging: *** define emacs shutdown function +I like to commit my notes in my org and workorg folders after a days work. +Keep track of your important stuff! + #+BEGIN_SRC emacs-lisp ;; define function to shutdown emacs server instance @@ -216,6 +219,10 @@ search the web on your fingertips. C-c /. #+END_SRC *** yasnippet +My first thought: Nice. But do I have a use case? After half a year I +cannot live without it. I write most of my [[http://www.cfengine.com][CFEngine]] code with +snippets. Some help for Perl and even for org-mode. + #+BEGIN_SRC emacs-lisp (add-to-list 'load-path "~/.emacs.d/elpa/yasnippet-20141017.736") @@ -236,6 +243,9 @@ search the web on your fingertips. C-c /. #+END_SRC *** [[https://github.com/kai2nenobu/guide-key][guide-key]] + +Probably the best help to keep track of the not every day used keybindings. + #+BEGIN_SRC emacs-lisp (add-to-list 'load-path "~/.emacs.d/elpa/popwin-20140902.1727") (add-to-list 'load-path "~/.emacs.d/elpa/guide-key-20140828.807") @@ -319,6 +329,8 @@ No need to start .pl .sh from scratch. *** ido-mode +I still like ido-find-file. + #+BEGIN_SRC emacs-lisp (ido-mode t) (setq ido-enable-prefix nil @@ -354,6 +366,10 @@ No need to start .pl .sh from scratch. See [[http://orgmode.org/worg/org-tutorials/orgtutorial_dto.html][orgtutorial_dto]] for details. +It's worth to use Emacs for org-mode alone. +[[http://howardism.org/Technical/Emacs/literate-devops.html][Literate DevOps]] and [[http://www.howardism.org/Technical/Emacs/literate-database.html][Literate Database Work]] are only 2 use cases. +With [[https://github.com/fniessen/org-html-themes.git][org html themes]] it's easy to generate beautiful output. + Run these commands to make org-protocol work in gnome: #+BEGIN_SRC sh :eval no :tangle no @@ -809,34 +825,10 @@ taken from http://doc.norang.ca/org-mode.org ) - (defun cfe-insert-bundle ( name ) - "Insert bundletemplate" - (interactive "sBundle: ") - (insert "#=head2 bundle " name " - # - # - # - #=cut - # - - bundle " name " - { - vars: - - files: - - methods: - - classes: - - }") - ) - (add-hook 'cfengine3-mode-hook (lambda () (which-function-mode) - (define-key cfengine3-mode-map "\C-cb" 'cfe-insert-bundle) (define-key cfengine3-mode-map "\C-c\S-t" (lambda() (interactive) (shell-command "~/bin/cfengine_update_testing.sh" ))) @@ -853,7 +845,7 @@ taken from http://doc.norang.ca/org-mode.org for C-c T you can use a file like this one: #+NAME: ~/bin/cfengine_update_testing.sh -#+BEGIN_SRC sh +#+BEGIN_SRC sh :tangle no #!/bin/bash :<