M-x all-things-emacs

Entries Tagged as 'tips'

Quick Tip: compilation-skip-threshold

May 22nd, 2007 by Rob Christie · No Comments

compilation-mode has a nice feature so that you can skip over your info and warning level messages and jump right to those nasty errors. Set the variable compilation-skip-threshold to 2 so that M-n and M-p will jump to the next or previous error respectively. The other possible settings for this variable are: 2 — skip […]

[Read more →]

Tags:java · quick · tips

Quick Tip: dos2unix, et al

April 30th, 2007 by Ryan McGeary · 8 Comments

I despise the fact that we live in a world with different end-of-line file formats. Windows/DOS uses CRLF, Unix uses LF, and Mac’s used to use CR1. Thankfully, Mac’s started to adopt the Unix format when OS X was released — if only Windows could do the same. What I despise even more is that […]

[Read more →]

Tags:osx · quick · tips · unix · windows

Keyboard Macros in the Wild: The Mundane SQL Fix

April 5th, 2007 by Rob Christie · 22 Comments

When you first start using emacs, there is normally someone who says something like keyboard macros in emacs rock. At that moment in time, they show you some quick little example, it looks neat but it probably doesn’t register with the true magnitude that it should. This series shows examples of macros “in the wild”. […]

[Read more →]

Tags:kb-macros · tips

Quick Tip: Line Numbering

March 29th, 2007 by Rob Christie · 7 Comments

I frequent the gnu.emacs.sources news group as one route to finding out about new packages. linenum.el came across the list recently. The package displays line numbers on the left side of your buffer. The author indicates that it is an alternative to setnu.el with the benefit that it works incrementally and can handle large files. […]

[Read more →]

Tags:quick · tips

Newbie Tip: isearch Word Yank

March 26th, 2007 by Ryan McGeary · 3 Comments

Our newbie tips are our way of expressing emacs features we might otherwise take for granted. We hope they help beginners climb the learning curve faster. This particular tip is one that I wish I knew far sooner when I first started using emacs. Incremental searching with isearch-forward and isearch-backward (C-s and C-r) is crucial […]

[Read more →]

Tags:isearch · newbie · quick · tips

Quick Tip: set-goal-column

March 17th, 2007 by Ryan McGeary · 7 Comments

On the surface, it might not sound like editing columns of text is something that happens a lot, but I find myself doing it fairly often. A quick way to enter different values on each line down a column is to use set-goal-column (bound to C-x C-n). Let’s say we have a block of text […]

[Read more →]

Tags:quick · tips

Quick Tip: re-builder

March 15th, 2007 by Rob Christie · 5 Comments

Have you ever wanted to test out regular expressions in emacs? Until I found out about re-builder I used to run M-x isearch-forward-regexp (also bound to C-M-s) in a buffer until I figured out the expression I needed. This works but just having M-x re-builder in your bag of tricks helps. In the words of […]

[Read more →]

Tags:quick · tips

Tab Completion Everywhere

March 12th, 2007 by Ryan McGeary · 13 Comments

I am addicted to tab completion in the minibuffer and in shells like bash — so much so that I want it everywhere. By default, emacs comes with dabbrev-expand (bound to M-/). When invoked after typing the first few letters of a word, dabbrev-expand first searches the current buffer and then other open buffers for […]

[Read more →]

Tags:elisp · tips

Quick Tip: scroll-all-mode

March 8th, 2007 by Ryan McGeary · No Comments

I don’t use this minor mode very often, but in rare cases, I find it valuable. When you have your frame split with multiple windows, sometimes it’s nice to scroll all the windows in unison. Try running M-x scroll-all-mode. Afterwards, scrolling commands entered in one window apply to all visibile windows. This works especially well […]

[Read more →]

Tags:quick · tips

Quick Tip: Highlighting Java .properties Files

March 1st, 2007 by Rob Christie · 1 Comment

Java .properties files are normally formatted using conf-javaprop-mode. Recently, I was frustrated because a single quote in a property was highlighted such that multiple lines were colored like a string until there was another quote on another line. I decided I was going to fix it… It turns out that I didn’t have to look […]

[Read more →]

Tags:java · quick · tips