-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
CategoryEditing
70 lines (69 loc) · 5.08 KB
/
CategoryEditing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Click the heading to list pages in this category.
This category is about editing, not modes. See CategoryModes, instead.
* [[kill|Killing]], [[yank|yanking]], copying and deleting:
** CopyWithoutSelection -- simply copy current [[line]], current word and current paragraph to the [[kill ring]] without selecting each line, word or paragraph
** DeleteSelectionMode -- type to replace the current selection (or backspace to delete it)
** DeletingSyntax -- an alternative to killing by words
** DeleteKillAndCopy -- take any motion command and prepend it with a suitable key to delete, kill or copy the text passed over
** DeletingWhitespace -- delete extra whitespace
** LRU-yank -- manipulate the [[kill ring]] in Least Recently Used fashion. Lisp:LRU-yank.el
** MousePlus -- highlight the [[yank]] position while you press `mouse-2', so you hit the right spot
** WholeLineOrRegion -- operate on current [[line]] if [[region]] is undefined
** ZapToChar -- Delete the characters from [[point]] to a character you specify.
** KillOrCopyToIsearch -- [[kill|Kill]] or copy from [[point]] up to where you are Isearching
** Motion/kill do-what-I-mean -- [[cursor]] movement and [[kill|killing]] [[DWIM]] functions. Lisp:motion-and-kill-dwim.el
** duplicate-previous/next-line lets you replace current line with a neighboring one by cycling through them like you can with history in Bash. I bind them to M-n and M-p. Lisp:duplicate-line.el
** [[Anything]] -- `M-x anything-show-kill-ring' narrows the kill-ring by multiple patterns.
** See also CategoryRegion
* [[register|Registers]]:
** RegAdhoc -- automatically add [[register]]s and show their destinations
** BetterRegisters -- [[register]] enhancements, [[keyboard macro]]s
** UnifyKillringAndRegister -- make [[register]]s easy to use
* [[cursor|Cursor]] indication
** ChangingCursorDynamically -- change cursor type and color, depending on context
** CrosshairHighlighting – highlight the current [[line]] and column; track cursor or show cross hairs momentarily.
** HighlightCurrentLine -- highlight the line of the cursor
** HighlightCurrentColumn -- highlight the column of the cursor
* Column indication and finding long [[line]]s:
** ModeLine, ModeLinePosition -- current-column in [[mode line]]; highlight when too large
** RulerMode -- a [[minor mode]] showing a ruler with columns, tab stops and more
** PopupRuler -- temporarily displays a column ruler just above point
** ColumnMarker -- displays semi-permanent column markers
** HighlightCurrentColumn -- highlight the column of the cursor
** FindLongLines -- commands to find long lines
* Numbering:
** RenumberList -- renumber your numbered lists
** ReplaceRegexp -- renumber lists using regular expressions, emacs >= 22
** ReplaceCount -- renumber lists using regular expressions, emacs < 22
** IncrementNumber -- sometimes useful while using [[keyboard macro]]s
** NumberLines -- put [[line]] numbers in source code -- useful with LaTeX
** LineNumbers -- display [[line]] numbers (without changing the text)
* Text tricks:
** FormattingText -- automagically format text
** RotateText -- rotate a buffer string, replacing it by each of a series of predefined replacements, in turn.
** SwappingText -- swap regions of text
** AlignCommands -- align text with respect to spaces, assignments or [[regexp]]
** ColumnizeWords -- format a list of words or quoted strings into columns
** DoubledWords -- find and delete doubled words
** DuplicateLines -- find and delete duplicate lines
** ReverseWords -- Reverse the order of words in the [[region]]. Words can be on the same line. Does not sort.
** InsertingTodaysDate -- insert today's date in letters or source code
** InsertFileName -- have Emacs help insert file name into the [[buffer]]
** ParEdit -- structured editing of s-expressions (parentheses)
** RepeatInsert -- insert repeating patterns, such as lists of numbers
** RotateWordCapitalization -- rotate the capitalization of the current word
** SimplerWordCapitalization -- make `upcase-word' (M-u), `downcase-word' (M-l), and `capitalize-word' (M-c) work on [[region]]s too.
** [[Multiverse]] -- manage multiple versions of [[buffer]]s in an Emacs session
** See also EmacsNiftyTricks
* [[line|Lines]]:
** LineCommands
** RunCommandOverLines -- execute a command for several lines, like in `ed' (TheTruePath)
** EndOfLineTips -- How to convert between different system line ending characters.
* Jumping around, and seeing where you've been
** MarkCommands -- Use of [[mark]] and [[point]] to jump around
** BookMarks -- Jump to places you have recorded (persistently or not).
*** [[Bookmark+]] -- Extensions to standard bookmark features, including VisualStudio-like bookmarks
*** VisibleBookmarks -- VisualStudio-like bookmarks for quick in-buffer navigation
** BreadcrumbForEmacs -- Leave breadcrumb bookmarks in the buffers, and jump back to them quickly.
** [[Icicles - Tripping]] -- Jump around among various sets of things (projects, files, [[bookmark]]s, [[buffer]]s, [[marker]]s, [[Info]] pages, search hits, [[window]]s, [[frame]]s,...).
** FastNav -- Multiple commands to support quick jump to, replace at, kill at, etc. the next/previous occurences of characters.