M-x all-things-emacs

Entries Tagged as 'quick'

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

Quick Tip: light-symbol-mode

April 17th, 2007 by Rob Christie · 7 Comments

I ran across this package on gnu.emacs.sources recently. If you enable light-symbol-mode in a buffer and pause on a symbol, then Emacs will highlight all other occurrences of the symbol in the buffer. When you move point the highlighting goes away.

[Read more →]

Tags:misc · quick

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

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

Quick Tip: Add occur to isearch

February 27th, 2007 by Ryan McGeary · 10 Comments

Zenspider gives us an excellent tip for extending incremental search. Add this to your emacs initialization: 1 2 3 4 5 6 (define-key isearch-mode-map (kbd "C-o") (lambda () (interactive) (let ((case-fold-search isearch-case-fold-search)) (occur (if isearch-regexp isearch-string (regexp-quote isearch-string)))))) This adds an extra keybinding to interactive search (C-s) that runs occur on the current search string/regexp, […]

[Read more →]

Tags:elisp · isearch · quick · tips

Quick Tip: Reuse Dired Buffers

February 25th, 2007 by Ryan McGeary · 1 Comment

By default, dired creates new buffers when visiting new directories. Sometimes this is desired, especially when you need to visualize the contents of two separate directories; however, when you’re just navigating around, all the extra buffers tend to clutter your buffer list. Typical navigation is done with dired-find-file (bound to f, RET, or e) or […]

[Read more →]

Tags:dired · quick · tips