M-x all-things-emacs

Entries Tagged as 'tips'

Copying Lines, not killing

May 18th, 2009 by Greg Reagle · 27 Comments

Do you find yourself often running a yank or undo immediately after killing lines? Would you like to copy a line instead of killing it? Do you wish that there was a prefix argument to C-k (kill-line) that made it copy instead of cut (to use the non-Emacs terminology). Here is your solution—a command that […]

[Read more →]

Tags:newbie · quick · tips

Quick Tip: Detaching the custom-file

December 6th, 2008 by Ryan McGeary · 5 Comments

I’ve never really liked the built-in customization UI in Emacs (M-x customize). I’m sure plenty of people use it and enjoy it, but, to me, it feels like an abominable tree of never ending and difficult to navigate options. Plus, it sticks your saved customizations as an unorganized mess of elisp smack at the bottom […]

[Read more →]

Tags:elisp · quick · tips

Emacs Starter Kit

December 5th, 2008 by Ryan McGeary · 19 Comments

Phil Hagelberg recently started a new project called Emacs Starter Kit. Here’s how Phil describes it: It’s … a set of dotfiles extracted from my years of obsessive Emacs tweaking. It acts as a base config from which new users can get going with minimal fuss. You won’t learn Emacs from it, but it will […]

[Read more →]

Tags:elisp · newbie · news · quick · tips

Giving ido-mode a Second Chance

May 19th, 2008 by Ryan McGeary · 24 Comments

Stuart Halloway’s recent screencast titled What You Can Learn From ido.el convinced me that I need to give ido-mode another look, especially since I didn’t realize it had support for flex (aka fuzzy) matching. I was always envious of the fuzzy matching that TextMate users received when finding a file in a project. I’ve tried […]

[Read more →]

Tags:ido · tips

Quick Tip: Easier Window Switching in Emacs

May 1st, 2008 by Rob Christie · 21 Comments

I ran across this thread on easier window switching within emacs using the windmove-xxx commands on gnu.emacs.help a few days ago. It’s always nice to find out about commands I didn’t know about… kinda like C-x M-c M-butterfly. I have always used C-x o and C-x b to move between windows and buffers, but my […]

[Read more →]

Tags:quick · tips

Quick Tip: Spaces instead of Tabs

September 30th, 2007 by Ryan McGeary · 13 Comments

Tab characters used as indentation of source code is a pet peeve of mine. Add this to your emacs initialization to make sure all indentation uses spaces instead. ;; I hate tabs! (setq-default indent-tabs-mode nil) Now, if you also use tab completion everywhere, someday, you’ll want to actually insert a real <tab> character (ASCII 9), […]

[Read more →]

Tags:newbie · quick · tips

Newbie Tip: Visual Emacs Keybinding Cheatsheet

August 27th, 2007 by Ryan McGeary · 1 Comment

For a newcomer to emacs, learning the default set of keybindings can be daunting. There’s no substitute for C-h b (describe-bindings) and C-h k (describe-key), but sometimes it’s just easier to learn visually.

[Read more →]

Tags:newbie · quick · tips

Quick Tip: show-paren-mode

August 7th, 2007 by Rob Christie · 2 Comments

When show-paren-mode is enabled a matching parenthesis is highlighted based on the location of point (i.e., when your cursor is on a parenthesis). You can tweak the behaviour of this minor mode by adjusting show-paren-style and the show-paren-delay. There are three styles to choose from: parenthesis – shows the matching paren expression – shows the […]

[Read more →]

Tags:newbie · quick · tips

Quick Tip: delete-blank-lines

June 7th, 2007 by Ryan McGeary · 3 Comments

The delete-blank-lines function is a simple yet handy tool to have in your bag of tricks. It is bound to C-x C-o. There isn’t a whole lot of magic surrounding it’s usage, so I’ll just quote the built-in help directly: On blank line, delete all surrounding blank lines, leaving just one. On isolated blank line, […]

[Read more →]

Tags:quick · tips

Quick Tip: Managing ChangeLogs

May 29th, 2007 by Ryan McGeary · 1 Comment

Ever wonder how people keep such organized ChangeLog files in the root of their source trees? I’m sure some are just anal enough to manually manage them. I know I’ve done so on smaller projects, but I find it too much of a hassle for anything larger. So, what do people use on larger projects? […]

[Read more →]

Tags:quick · tips