From 21e8db012f8c46f75e43a40da3f3e2676363c291 Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 14 Mar 2020 18:01:23 +0000 Subject: deploy: 951ccb67565f34a0aa1b23ad6eef647aed5e0b4b --- emacs.html | 268 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 268 insertions(+) create mode 100644 emacs.html (limited to 'emacs.html') diff --git a/emacs.html b/emacs.html new file mode 100644 index 0000000..96012d6 --- /dev/null +++ b/emacs.html @@ -0,0 +1,268 @@ + + + + + + emacs - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + +
+
+

emacs(1)

+

help

+
  C-h f                 describe function
+  C-h b                 list buffer available keymaps
+  <kseq> C-h            list possible keymaps with <kseq>
+                        eg C-x C-h -> list keymaps beginning with C-x
+
+

window

+
  C-x 0         kill focused window
+  C-x 1         kill all other windows
+  C-x 2         split horizontal
+  C-x 3         split vertical
+
+

block/rect

+
  C-x <SPC>                     activate rectangle-mark-mode
+  M-x string-rectangle <RET>    insert text in marked rect
+
+

mass edit

+
  C-x h                                 mark whole buffer (mark-whole-buffer)
+  M-x delete-matching-line <RET>        delete lines matching regex
+  M-x %                                 search & replace region (query-replace)
+  C-M-x %                               search & replace regex (query-replace-regexp)
+
+

grep

+
  M-x find-grep <RET>           run find-grep result in *grep* buffer
+  n/p                           navigate next/previous match in *grep* buffer
+
+

lisp mode

+
  M-x lisp-interaction-mode     activate lisp mode
+  C-M-x                         evaluate top expr under cursor
+  C-x C-e                       eval-last-sexp
+  C-u C-x C-e                   eval-last-sexp and prints result in current buffer
+
+

narrow

+
  C-x n n               show only focused region (narrow)
+  C-x n w               show whole buffer (wide)
+
+

org

+
  M-up/M-down           re-arrange items in same hierarchy
+  M-left/M-right        change item hierarchy
+  C-RET                 create new item below current
+  C-S-RET               create new TODO item below current
+  S-left/S-right        cycle TODO states
+
+

org source

+
  <s TAB                generate a source block
+  C-c '                 edit source block (in lang specific buffer)
+  C-c C-c               eval source block
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3