diff options
author | johannst <johannes.stoelp@gmail.com> | 2019-08-19 22:52:55 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2019-08-19 22:52:55 +0200 |
commit | 54d8a53a8924786df363adbf94ccda4be76d111e (patch) | |
tree | c31cab3fa155a455395df5e1fbf726cc98f68b19 | |
parent | b72cd779b1c5af17c8b577d01f5afbda34b6d381 (diff) | |
download | notes-54d8a53a8924786df363adbf94ccda4be76d111e.tar.gz notes-54d8a53a8924786df363adbf94ccda4be76d111e.zip |
added initial emacs notes
-rw-r--r-- | emacs.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/emacs.txt b/emacs.txt new file mode 100644 index 0000000..77ddbf3 --- /dev/null +++ b/emacs.txt @@ -0,0 +1,56 @@ +.:: Emacs ::. +-------------------------------------------------------------------------------- + +# toc +------ + |help| + |window| + |rect| + |mass| + |grep| + |lisp| + |narrow| + + +# 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 query-replace <RET> search & replace region + +# 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 + +# narrow +========= + C-x n n show only focused region (narrow) + C-x n w show whole buffer (wide) + +-------------------------------------------------------------------------------- +Vim:sts=2:et:tw=80:cc=80:fo+=t:ft=help |