From 50f3eff4ec714292357c058db8e1d5a6ea710a43 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 5 Nov 2014 13:18:24 +0100 Subject: [PATCH] integrated emacs.org in config. Use it with C-c F9 if ~/org/emacs.org is not available. Signed-off-by: Andreas Gerler --- bba.org | 5 +- org/emacs.org | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 org/emacs.org diff --git a/bba.org b/bba.org index ff050fdc..8ddd7070 100644 --- a/bba.org +++ b/bba.org @@ -333,7 +333,10 @@ javascript:location.href='org-protocol://capture:/l/'%20+%20encodeURIComponent(l - (global-set-key (kbd "C-c ") '(lambda () (interactive) (find-file "~/org/emacs.org"))) + (global-set-key (kbd "C-c ") '(lambda () (interactive) + ( if (file-exists-p "~/org/emacs.org") + (find-file "~/org/emacs.org") + (find-file "~/.emacs.d/org/emacs.org")))) ;; (setq org-clock-persist 'history) (org-clock-persistence-insinuate) diff --git a/org/emacs.org b/org/emacs.org new file mode 100644 index 00000000..a4791ac1 --- /dev/null +++ b/org/emacs.org @@ -0,0 +1,125 @@ +#+STARTUP: showall +* Shortcuts +** commands +|-------------------+-------------------------------------------------------------------------------------------| +| Shortcut | Description | +|-------------------+-------------------------------------------------------------------------------------------| +| C-c F5 | org/notes.org | +| C-c F6 | org/work.org | +| C-c F8 | org/workhours.org | +| C-c F9 | org/emacs.org | +|-------------------+-------------------------------------------------------------------------------------------| +| F9 c | calendar | +| F9 I | bh/punch-in | +| F9 O | bh/punch-out | +| F9 t | bh/insert-inactive-timestamp | +| F9 T | bh/toggle-insert-inactive-timestamp | +|-------------------+-------------------------------------------------------------------------------------------| +| F3 | previous-buffer | +| F4 | next-buffer | +|-------------------+-------------------------------------------------------------------------------------------| +| C-c t f | toggle auto-fill-mode | +| C-c t p | toggle smartparens-mode | +| C-c t s | toggle flyspell-mode | +| C-c t w | toggle which-function-mode | +|-------------------+-------------------------------------------------------------------------------------------| +| C-x l c | calculator | +| C-x l d | ediff-buffers | +| C-x l i | ielm | +| C-x l s | shell | +| C-x l S | synonyms | +| C-x l t | git-timemachine | +|-------------------+-------------------------------------------------------------------------------------------| +| F11 | org-clock-goto | +| C-F11 | org-clock-in | +| C-c F12 | toogle Whitespace mode | +| F12 | org-agenda | +|-------------------+-------------------------------------------------------------------------------------------| +| C-c a | org-agenda | +| C-c c | org-capture | +| C-c l | org-store-link | +| C-c . | prompt for date and insert timestamp | +| C-u C-c . | like C-c . but insert date and time format | +|-------------------+-------------------------------------------------------------------------------------------| +| C-u M-! | shell command and output to current position. | +| M-\vert | shell-command-on-region Execute string COMMAND in inferior shell with region as input. | +| M-: | eval expression. for oneliners | +| M-^ | joins the current line with the line above it, removing whitespace in the process. | +| C-x v = | runs the command vc-diff for the current file | +| C-x v g | vc-annotate | +| C-x 5 0 | close window while in emacs is in deamon mode. | +| | auto-fill-mode and set variable fill-column to 76 | +| C-q | quoted-insert. Read next input character and insert it. eg insert | +|-------------------+-------------------------------------------------------------------------------------------| +| M-{ | move paragraph backward | +| M-} | move paragraph forward | +| M-C-a | move function backward | +| M-C-e | move function forward | +| M-C-u | backward-up-list Move backward out of one level of parentheses. | +| M-C-k | kill-sexp. Kill the sexp (balanced expression) following point. | +|-------------------+-------------------------------------------------------------------------------------------| +| C-x ^ | grow window taller | +| C-x { | shrink window narrower | +| C-x } | grow window wider | +|-------------------+-------------------------------------------------------------------------------------------| +| M-$ | check spelling of current word | +| M-x ispell-region | check spelling of all words in region | +| M-x ispell-buffer | check spelling of entire buffer | +| C-c ? | synonyms | +|-------------------+-------------------------------------------------------------------------------------------| +| C-c b | cfe-insert-bundle | +| C-c T | run ~/bin/cfengine_update_testing.sh | +| C-c C-w | fixup-whitespace | +| C-c C-space | ace-jump-mode C-u ace-jump-char-mode | +| C-c f | tags-search | +| C-c t | visit-tags-table | +| C-c M-c | centered-cursor-mode | +| C-x C-x | Swap point and mark | +| C-u C-space | Cycle through mark ring | +|-------------------+-------------------------------------------------------------------------------------------| +| M-g M-d | magit-diff-unstaged | +| M-g M-s | magit-status | +| M-g M-b | magit-branch-manager | +| M-g b | magit-blame-mode | +|-------------------+-------------------------------------------------------------------------------------------| +| C-c C-h P | cperl-perldoc-at-point | +| C-c w | woman | +|-------------------+-------------------------------------------------------------------------------------------| +** orgmode Time reporting + [2014-06-26 Thu 11:44] + +To get a report of time spent on tasks for XYZ.org you simply visit +the XYZ.org file and run an agenda clock report for the last month +with F12 < a v m b R. This limits the agenda to this one file, shows +the agenda for a full month, moves to last month, and generates a +clock report. + +My agenda org clock report settings show 5 levels of detail with links +to the tasks. I like wider reports than the default compact setting so +I override the :narrow value. + +* orgmode :ATTACH: + :PROPERTIES: + :Attachments: neilsen_org_examples.html + :ID: a7ab0e5e-438d-4a2b-8ca7-074997cea728 + :END: +You can make words *bold*, /italic/, _underlined_, =code= and +~verbatim~, and, if you must, +strike-through+. +See more in the [[http://orgmode.org/manual/index.html][manual]] or check out [[http://sachachua.com/blog/2014/01/tips-learning-org-mode-emacs/][Some tips for learning Org Mode +for Emacs]] and other [[http://dl.dropboxusercontent.com/u/3968124/blog.html#sec-1-50][blog entries]] of Sacha Chua. + +*** C-c C-t set TODO to DONE +*** C-c l opens link +*** SHIFT TAB toggles headings / full list +*** C-c C-s for scheduling tasks and using the agenda +* oneliner +*** (dotimes (i 254) (insert (format "srv%03d.tracking\tIN\tA\t10.20.224.%d\n" (1+ i) (1+ i)))) +* log-keyboard-commands +M-x mwe:open-command-log-buffer +M-x mwe:log-keyboard-commands +* tramp + +C-x C-f /sudo::/etc/fstab +C-x C-f /sudo::user@server + +C-x C-f /sudo:ssh-host:file-on-ssh-host -- 2.47.3