Tag: Tips

, , ,

Weekly Emacs tip #9: Removing superfluous spaces

Today’s tip is about managing superfluous spaces (in the sense of whitespace). For that, I use the following two functions: The function delete-horizontal-space (bound to M-\) removes all whitespace (spaces and tabs) around the point (Emacs-speak for “the cursor”). The function cycle-spacing (bound to M-SPC) is a “smarter” version of the above. It manipulates whitespace […]

Read full case study

, , , ,

Weekly Emacs tip #8: Getting help: the C-h prefix

This week, another “tip” that is both a tip and some background information. Emacs has been called the self-documenting editor. The first time may very well have been in the 1981 paper by Richard Stallman titled EMACS the extensible, customizable self-documenting display editor (https://doi.org/10.1145/872730.806466). The Emacs manual describes it in the following way: Self-documenting means […]

Read full case study

, , , ,

Weekly Emacs tip #6: highlight uncommitted changes: diff-hl

After enabling diff-hl-mode by Github user dgutov any lines with uncommitted changes in a (version controlled) file will be highlighted in the margin. In large files, for example, this makes it easy to spot the sections that you have edited. Here is how I enable diff-hl-mode for all files: ;;;;;;;;;;;;;;;;;;;; ;; Enable diff-hl-mode (https://github.com/dgutov/diff-hl) to […]

Read full case study

, , , ,

Weekly Emacs tip #3: Automatically balance your delimiters with electric-pair-mode

This week’s tip is about balancing delimiters like parentheses, brackets, quotes, etc. The built-in electric-pair-mode does the following then enabled (copied from the manual, emphasis mine): Electric Pair mode, a global minor mode, provides a way to easily insert matching delimiters: parentheses, braces, brackets, etc. Whenever you insert an opening delimiter, the matching closing delimiter […]

Read full case study

Let us keep you updated!

Once a month we’ll send you an overview of our newest articles. No spam, we promise.

Thank you for signing up! We've send you an confirmation mail.