Stack OverflowThe single most useful Emacs feature
[+261] [94] Readonly
[2008-09-13 06:41:09]
[ emacs polls hidden-features ]

My primary editor is Emacs, but my usage habits and knowledge of features has barely changed over the last few years.

What are the Emacs features that you use on a daily basis? Are there any little-known Emacs features that you find very useful?

Edit: Made this into the recommended poll format...please put one feature per answer from now on.

Consider modifying the question to ask for "The single most useful Emacs feature" (or "The most useful obscure feature..." or something). This way people can vote on specific answers, and your question in effect becomes a poll. - ehdr
I think the new question text negates many of the answers below. The original question was not asking for the "Single" most useful emacs feature. The answer I gave below is not the single most useful emacs feature, but rather one of many useful emacs features. Please revert the question title. - Alex B
[+186] [2008-09-13 08:31:32] Ray Vega

Auto-complete words in your code based on what already exists in the buffers:


Keep hitting M-/ until you find the word you are looking for.

Cuts down tremendously on how much you type.

(24) As mentioned below, hippie-expand is a good feature. (global-set-key (kbd "M-/") 'hippie-expand) It's just like the default binding for M-/ - except more powerful. - Trey Jackson
(1) This is a great feature that other editors have copied as well, in Textmate, hit "Esc", in Vim (in insert mode), its control-n, in IntelliJ, it's called "Cyclic Expand Word" and you can map it in your keymap to whatever key you want. - Ted Naleid
[+163] [2008-09-13 13:33:23] ehdr

A not so well known feature that I find very useful is M-x align-regexp. If you mark a region and execute it, you will be asked for a regular expression, and emacs will then line up the first match of that expression on every line, by padding with spaces (or tabs, if you like). For example, say that you have a list of variables in your code:

int a = 2;
int a_longer_variable_name = 73;
int i = 0;

Then you can mark those lines and to M-x align-regexp and specify = as the expression, and it will align it like:

int a                      = 2;
int a_longer_variable_name = 73;
int i                      = 0;

Maybe not the most important feature in the world, but I use it regularly, and it sometimes impresses non-emacs people. :)

Wow, this is amazingly useful in combination with kill-rectangle! - rcreswick
(3) I love this! Doing this by hand is a real pain. I'd never even thought about automating it! - allyourcode
(71) The only problem with this is that if later you add a longer variable name than your maximum, you need to re-align the other lines - which introduces meaningless DIFFs into your source control. The general rule is that a line shouldn't change in source control unless its meaning or functionality changes. - Erik Forbes
(20) Erik: If you add a new variable, "it" (the block of variable definitions) has changed it's meaning or functionality. Code should be presented in a way to best convey it's meaning to the reader and, until we have editors that can do it all automatically the way each person likes it done, this type of formatting will continue to happen. - RHSeeger
(3) I also don't find this a very good programming practice, but the command is extremely useful when formatting other types of text, like ad-hoc tables in documentation and all sorts of non-programming uses. - obvio171
(2) Don't do this in Python, if you care about PEP8. - Vince
(12) @Erik Forbes: That's because source version control systems are broken. They should be agnostic: parsing the AST for a C source file and noticing that they're actually identical files, same for Java, C#, etc. Anyway, the issue you raise and 15 people upvote can be solved by formatting to a common accepted codestyle before committing. Now comes a line about "people seeing the world as it is and wondering: why?" versus "people imagining the world as it could be and wondering: why not?". Something like that ;) - SyntaxT3rr0r
(1) @RHSeeger - That's true, but I was talking about all the other lines - if, taking his example, I add a variable named 'a_really_really_long_variable_name', then I need to change all the other variable declarations which have no business changing since the functionality isn't changing. Hence - meaningless diffs. - Erik Forbes
(1) @Webinator - I wish, man, I wish. AST-based source control would be awesome - although there'd have to be some sort of hooks for the type of information that gets lost during the translation, like comments, metadata, file names, etc. At least for C#, once the whole 'Compiler as a Service' bit comes out, maybe we'll start seeing some movement in this area. I'm keeping an open mind. - Erik Forbes
(7) @Erik, that's what diff -bB is for - jdizzle
@Erik Forbes: me again (ex-Webinator)... Actually it's quite interesting. Google's Go language specs have a formatting carved in stone and a utility, gofmt, that must be used before committing. gofmt does precisely what is shown above and, hence, a single change can make several line appear in a regular diff. - SyntaxT3rr0r
how can i do this on vim ? - vinilios
It's a neat trick but as a rule of thumb, you should avoid this kind of ASCII formatting because the slightest renaming will force you to re-align everything, which quickly becomes a waste of time. - Cedric Beust
[+98] [2008-09-17 14:07:53] TMealy

M-x occur

This feature is very useful when re-factoring/analyzing code. It's one of the things that keeps me from becoming a Vim [1] user.


(27) :g/regex in vim will do the same thing ;) - camflan
(10) Just hitting C-s (for search) already highlights all occurrences in a default Emacs - ShreevatsaR
(2) This is one of the reasons I simply love Emacs: after about 7 years of use I can still discover useful new things coming with the default installation. Sometimes the shiny "new" feature I just discovered or learned about is 10-15 years old ... :-) - paprika
(10) Don't forget about M-x multi-occur and M-x multi-occur-in-matching-buffers, which allow you to occur across multiple buffers. - ataylor
(2) In vim, :vimgrep regex % will do the same as M-x occur. Changing the second argument to match wanted files will do the same as M-x multi-occur and M-x multi-occur-in-matching-buffers. - Taurus Olson
(1) Just cut to the chase and go straight to M-x grep-find and M-x grep-query-replace. - slacy
M-s o is the shortcut for M-x occur. - solarmist
[+70] [2008-09-13 08:32:54] Sébastien RoccaSerra


Anything [1]! It's a kind of Quicksilver / Launchy / slickedit / Ubiquity tool inside Emacs.

Out of the box it allows you to type a word or regex and presents you lists of matching:

  • buffers (defaulting to the previous buffer, allowing you to switch back & forth between two buffers)
  • files from the current directory
  • recent files
  • emacs functions / commands
  • info pages
  • man pages

And it's easily extensible, you can easily add Google suggestions, or grep / find / mdfind [2] tools (most of them being allready there).

With Anything, I don't need iswitchb anymore, and I rarely use (ido-)find-file, since most of the time the files I want to open are already in the recent files list or the current directory list.

It changed the way I use Emacs!

Org Mode

Org Mode [3] for project planning. From the home page:

Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing project planning with a fast and effective plain-text system.

It comes with Emacs, and it has a great integrated, plain text, programmer friendly, builtin table & spreadsheet [4] engine! (Includig auto re-aligning and formulas.)

Smart Tab

Smart Tab [5] makes your tab key smart. If you're at the end of a symbol it tries to complete it, otherwise it indents the current line / region.

It works great for me: it makes line indenting, region indenting and completion available near the home line.


(2) Tried anything, and its an awesome tool! I was just unable to actually use it, since it "destroys" my regular find-files by making me unable to complete dirs/files and/or edit the suggestions from anything! Not sure if this could be win32-related or not, but I went back to ido. - sandos
(1) I prefer ido-mode and smex to anything but it is in the same general ballpark. - Sean T Allen
the smart tab thing is excellent! - David 天宇 Wong
[+60] [2008-09-13 07:42:39] John

self-insert, by far, imo.

(13) +1. Wow, using Emacs for typing text?! That's the last thing one would imagine. - ShreevatsaR
(1) I think this is a serious commentary on vim's modality. Emacs is non-modal, and that's a big feature over the "2nd most popular non-graphical editor" - slacy
[+49] [2008-09-13 08:37:57] epatel

Keyboard macros [1] are very powerful when dealing with list of stuff...I use them as often as possible.


[+47] [2009-04-07 07:53:09] Heinzi

string-rectangle (C-x r t) and kill-rectangle (C-x r k). They allow to add stuff in front of every line in a block of text or---vice-versa---remove such stuff.

What would be the potential use cases for this (other than commenting/uncommenting blocks of code)? - Sridhar Ratnakumar
(2) @Sridhar: Indenting blocks of code, editing text tables (in combination with yank-rectangle (C-x r y)). But yes, I also use it mainly for commenting/uncommenting and similar stuff (like adding a double quotation mark in front of every line). - Heinzi
(5) This is a dumb way to do commenting. For that, try M-x comment-region and M-x uncomment-region. - jrockway
(1) Add open-rectangle (C-x r o) for HAML and SASS. - smparkes
[+44] [2008-09-16 06:11:13] jfm3

Here's the rundown of my F-keys:

F1: Gnus. Takes some learning, but cut my daily email time down to 20 minutes.

F2: ansi-term. Fairly full featured terminal emulator with a mode where you can switch back into behaving like an emacs buffer for kill/yank/macro goodness.

F3: slime. Crazy good tool for hacking the good hack with Common Lisp.

F4: switch-to-buffer "scratch". The scratch buffer is a good place to do fancy Emacs stuff when you don't want to type in the mini-buffer (try C-j).

F5: compile. You don't realize how great this is until you also grok next-error and previous-error.

F6: visits the buffer I have usually associated with an SQL session, either in an ansi-term or using psql.

F7: w3m. Very slick, fast web browser. Perfect for searching documentation.

F9: Visit my todo file in org-mode. org-mode, like gnus, takes a while to learn, but you can go so damn fast with it, it's worth it.

F10: calendar. Not as nice as org-mode but I haven't switched over all the way yet.

F11: open the EMMS playlist. EMMS doesn't come with the usual upstream Emacs distribution, but it's a pretty reasonable OGG/MP3/etc player.

F12: I run ERC and bitlbee. F12 brings me to the chat buffer with all my contacts from Google Talk and AIM in it.

Insanely cool thing not on one of my F-keys: TRAMP. TRAMP integrates into the way emacs finds, reads, and writes files. You can use file names like /sudo::/etc/passwd to edit things as root without starting another emacs, or / to edit files remotely without staring a remote emacs.

Generalized ompletion modes and facilities are useful too. I like completion.el, but there are several to choose from.

Definitely check out Tons of good ideas there. Good luck!

[+37] [2008-09-16 19:28:17] Jonathan Arkell

Elisp. While the language itself can be a little bit clunky (for a lisp) it is so nice to be able to extend or fix your editor on the fly when you need to do so.

(4) That's like wishing for more wishes! You can't do that. =) - technomancy
[+35] [2008-09-13 13:36:25] Bart

dired (M-x dired) let me navigate folders by touch-typing, much faster than browsing in a GUI.

(2) Or faster: C-x d - Jeremy Powell
(1) This is what I mainly use emacs for :) - sandos
I use M-x find-dired a lot. Useful for a getting a dired buffer containing a list of all the files (filtered by the Unix find command) in a directory, and its subdirectories, recursively. - ataylor
Don't forget - using dired you can find/replace within multiple files! Although I typically use find/grep/sed for that, it can still be useful. - Ixmatus
[+34] [2008-10-25 16:24:34] user9282

yasnippets [1]

Textmate-like snippet expansion functionality for Emacs.


(6) I wouldn't call it refactoring; maybe snippet expansion or code-assistance are better terms. - Cheeso
(3) the project is hosted on google code - - mozillalives
yasnippets are amazing - custom snippets make it even better! - Ixmatus
[+34] [2010-08-11 16:46:13] Pete

Pretty hard to limit myself to the single most useful feature, but I like this command that hasn't been mentioned yet: auto-revert-tail-mode.

Open up a log file you’d like to monitor in emacs and then do M-x auto-revert-tail-mode. Emacs will automatically watch the file, just like POSIX tail -f.

Can it be made to work with inotail? - yonkeltron
useful when looking live log files. - whunmr
darn, couldn't find that this week, only found auto-revert-mode. - js.
[+29] [2009-04-03 12:22:41] Dave Jennings

M-x re-builder

Interactive regular expression builder that shows you live in the current buffer just what the regular expression is matching. Great for working out what things might need to be escaped (e.g. () pairs) and whether there's hidden tabs in the whitespace.

When you're done you just cut-n-paste into M-x query-replace-regexp or similar.

(1) Part of the reason this is so useful is because interactive regexes in emacs are clumsy. - Tim Schaeffer
[+29] [2009-06-25 18:57:51] community_owned

Most of us are familiar with M-! for running a quick shell command from inside Emacs. A somewhat lesser known facet of this function involves using a prefix command of 1:

M-1 M-!

This runs the shell command and inserts the output at point in my buffer.

But what good is that? It lets me insert text into buffers, but not interact with it in any significant way. What I really need is a way to get the shell to take input from my buffer. Enter the cousins M-| and M-1 M-|. From the docs:

M-| runs the command shell-command-on-region, which is an interactive compiled Lisp function in `simple.el'

M-1 M-| runs a shell command on the region and replaces the region with the output of the command.

In general, I prefer to use features built into Emacs, but when there's no Elisp equivalent available, I can carry out text transformations I need simply and easily:

M-1 M-| perl -p -e 'y/a-zA-Z/n-za-mN-ZA-M/'

To rot-13 encrypt a region quickly, for instance.

(Incidentally, The keystrokes C-1 through C-0 and M-1 through M-0 are the same (by default) as C-u 1 through C-u 0, which makes it very easy to type in repeat arguments. Just hold down M and type in 1 and |, or hold down C and type in 7 and n.)

Exactly how often do you ever need to ROT-13 encrypt a region quickly? - Joe D
@Joe D: I think you totally missed the point of the example... That said I do always ROT-13 twice in a row! - SyntaxT3rr0r
this is very cool, especially for someone like me who knows a lot more shell tricks than emacs tricks - frankc
[+27] [2008-09-13 10:11:46] cic

Flyspell-mode! "Flyspell enables on-the-fly spell checking in Emacs by the means of a minor mode."

Can be configured to check LaTeX documents and comments in some other languages (flyspell-prog-mode).

Insanely useful. I have a line in my .emacs file to automatically enable it for latex-mode: (add-hook 'latex-mode-hook 'flyspell-mode) - Kimmo Puputti
Yes, and once you get used to using the C-; to correct the last mistake it becomes very efficient. - Borbus
It's useful, but it's always dog slow for me - and it slows my editing sessions down... Does anyone else have this issue?? - Ixmatus
I bind flyspell-correct-previous-mispelled-word to C-c p Killer feature for us writers of prose. - singingfish
[+27] [2008-09-14 17:22:11] Łukasz

hippie-expand [1], best text expansion in emacs, binding it to TAB and it will always do the right thing (and also very customizable).


[+26] [2010-07-15 20:05:00] Kenneth

Org-mode [1]. My whole life is in a massive, single .org file.


[+26] [2010-08-25 18:59:36] Martin Owen

Bookmarks. Emacs bookmarks are both named and persistent, two features that many editors fail to offer.

They are invaluable because not only can I save my place in a file, I can also bookmark a directory that will be opened with Dired. I use them to jump to my most visited locations on the file system, and my main Org Mode files. Having a bookmark which effortlessly takes me where I want to go prevents me from losing my focus while I click around in the Finder or Windows Explorer.

I manage large numbers of bookmarks by namespacing them - all of my Org file bookmarks start with 'org' for example. This makes it easier to find a bookmark with tab-completion.

How to use them:

  • C-x r m BOOKMARK <RET> Set the bookmark named BOOKMARK at point (`bookmark-set').

  • C-x r b BOOKMARK <RET> Jump to the bookmark named BOOKMARK (`bookmark-jump').

  • C-x r l List all bookmarks (`list-bookmarks').

I'm still waiting for Visual Studio to introduce named bookmarks - you need to install ReSharper just to get numbered ones!

(2) Thank you so much for that, I had no idea it existed. Tt will make my life so much easier! - Vivi
Thanks! I had no idea it worked for dired buffers; very handy. It also works inside info. - justinhj
(1) See also Bookmark+. - Drew
[+25] [2008-09-13 14:46:43] Devrin

Though it's not an emacs feature, it's always worthwhile to point out to any newbies to remap their caps lock keys to control. Save those pinkies!

(2) despite popularity, this is a very bad advice--it puts undue stress on the left hand and the left pink! the original emacs keyboard had controls on both sides of spacebar (followed by meta, super and hyper). splittist elaborates here, - community_owned
(16) Traditional UNIX keyboards typically had the control key where the caps lock key is now, hence the remapping tradition. You use your pinky for hitting shift and tab, and caps is even easier - give the finger some credit! It's a LOT better than the default layout, so I wouldn't call it bad advice. - Alasdair
I don't have any problems with control in either location. Meta, however - I bring my left thumb under for meta, but I have oddly-formed thumbs, so maybe that only works for me. - JasonFruit
(1) The whole, rebinding capslock/pinky pain problem is the entire reason I bought this keyboard and rebound the left thumb pad so Ctrl and Meta are more easily accessible. - docgnome
I second the idea to put control on either side of the space bar and metas next to control. In this way, I am able to press both ctrl and meta with the opposite thumb. - Joseph Gay
[+25] [2009-08-04 20:01:51] Galghamon

How about the newbie-friendly

C-h k

which shows the documentation for the command associated with any key.


C-h f

which shows the documentation for any particular command, given its name (i.e. what you would type after M-x).

I find these to be very helpful while learning emacs.

(1) C-h a is arguably more useful than C-h f on the assumption that you don't quite know the command name - jk.
(1) You can also use C-h c to describe a key command in the minibuffer. For instance C-h c C-h c prints "C-h c runs the command describe-key-briefly" - Patrick
[+24] [2008-09-13 06:52:20] Dave Webb

I'm not sure if iswitchb [1] is little known but it's something I use countless times everyday. It makes switching buffer that little bit easier. When you enter C-x b to switch buffers iswitchb allows you just to enter a unique substring of the buffer name to select it which can often just be a single character. It's hard to explain but easy to try and once you've tried it you'll never switch it off.

partial-completion-mode [2] does something similar in that it can autocomplete any minibuffer commands. It works best if it give it a hint by typing any dashes in the commands. For example, for M-x yank-rectangle I can use M-x y-r [tab] and have it autocomplete.

And there's TRAMP [3] for opening files on remote machines, usually via SSH. It works a treat on Windows using plink.exe from the Putty [4] package.


s/ I useless countless/ I use countless/ - J.F. Sebastian
Thamks. Made the edit. - Dave Webb
upvote for 'iswithb'. started using it based on your answer & so much better than plain vanilla switching buffers C-x b - Ray Vega
ido-mode is built in now I think. (ido-mode 1) (ido-everywhere 1) (setf ido-confirm-unique-completion t) (setf ido-enable-flex-matching t) (ido-mode 'buffer) (ffap-bindings) - Richard Riley
thanks! using it from now on - Peter
[+19] [2008-09-15 15:43:41] Alex B

I like interactive SQL mode to give me command line editing and history while using sqlplus.

M-x sql-oracle

And I add the following to my .emacs file:

(defun my-sql-interactive-mode-hook ()
  (setq tab-width 8))
(add-hook 'sql-interactive-mode-hook 'my-sql-interactive-mode-hook)
(require 'sql)

Now I can start a sqlplus session and I get C-up and C-down to navigate through prior sql commands (similar to shell mode). This requires sqlplus to be available.

This is awesome, fantastic :) - robertpostill
(3) Also, M-x sql-mysql, M-x sql-postgres, etc, for just about any SQL database you're likely to be using. - ataylor
(1) In addition, I find it useful to (setq truncate-lines t) in my sql-interactive-mode-hook, so emacs won't try to wrap wide table selects. - ataylor
An oft overlooked aspect of interactive SQL is that it works through TRAMP. Just execute the command while viewing a remote shell buffer or dired buffer. The most important thing to note is that your SQL session runs through localhost on the remote machine, which is so cool, it almost merits a separate answer. What this means of course, is that you can take advantage of the interactive SQL interface in your existing Emacs to a machine that doesn't allow remote SQL server connections. - Joseph Gay
[+18] [2008-09-16 22:30:50] Chopmo

Using ido for finding symbols in the current buffer:

Speeding up navigation by adding shortcuts to jump 5 lines per keystroke:

;; Faster point movement
(global-set-key "\M-\C-p" 
  '(lambda () (interactive) (previous-line 5)))

(global-set-key "\M-\C-n" 
  '(lambda () (interactive) (next-line 5)))

But the single biggest productivity booster for me has been swapping numbers and punctuation when programming in C++:

(3) If you're moving more than a few lines, you probably should be moving either by page, or by using search. It's much faster to C-s sometext in most cases. Just pick something near the line you need. When it gets automatic, it's lightning fast. - Paul McMillan
(1) If you want to invoke commands that accepts numeric arguments you can use prefix C-u to send an argument of 4 to the command. So C-u C-p moves 4 lines up by default. - antonj
[+18] [2008-09-16 07:42:27] Kendall Helmstetter Gelner

Someone else mentioned keyboard macros, but provided a broken link.

That feature may seem inane if you've used it with other platforms. But keyboard macros in Emacs are far more powerful, or at least easy to access the power of, than any other system I have used.

You can start simply by typing "C-x (", then anything you do is recorded to be played back... which means searches, replacement, opening new files, and so on. Then when you are done you can type "C-x )" to end the macro, and C-x e to replay the last keyboard macro. If you want to execute a macro multiple times, you can do so by pressing "e" repeatedly after the first execution via "C-x e". You can also run name-last-kbd-macro to name it, then use insert-kbd-macro to save off the macro you just defined somewhere (like .emacs).

The real power of macros comes into play when you use multiple cut buffers (registers), to save away various fragments of text in the middle of a macro and re-use the parts elsewhere. You can for example have a macro that expects some key text to be in register A for insertion, perhaps a search term in register B, and some other text to append elsewhere in register C grabbed on the fly within the macro. Or of course use multiple registers like multiple clipboards, all within emacs - the key bindings are different than they once were, but the commands you want are copy-to-register and insert-register.

All that, and it's basically as simple as typing something once (carefully) and then having Emacs repeat what you were doing with very complex changes possible.

I have used the combination of keyboard macros and registers to do things as diverse as turn lines of words into multiple lines of code appropriate for the word on the line, repair damaged LDIF files from an LDAP system, or do various refactoring tasks.

The keybindings are C-x (, C-x ), and C-x e. And it is terribly annoying that macro recording stops right away once you make a mistake and cause C-g to be pressed. - Jouni K. Seppänen
I took the liberty to correct the bindings. - Svante
I have to agree with this one - even though most of my programming time these days is spent inside Visual Studio, I still find myself copying block of text into emacs, running a few macros, then pasting the results back into VS. - chris
Oooo. Clever use of registers. I'll have to remember that. - Paul Nathan
You can also repeat a macro by using C-u and a number. If the number is 0, the macro will go on until it rings a bell, runs out of input or something like this--this can go on indefinitely. Another fun thing to do is to use the scratch buffer to execute arbitrary elisp lines with C-j. This way you can subtract numbers, or something. - Tikhon Jelvis
and if you mess up a macro, fear not. C-x C-k C-e and you can edit your macro - Martin Neal
I love keyboard macros with apply-macro-to-region-lines Which is bound to C-x C-k r on my system. Emacs will go to the beginning of each line in the current region run the macro. - Shannon Severance
[+17] [2008-10-28 14:04:20] Tim van der Leeuw

Numbering in macros.

In the new(er) Emacsen, 'F3' is bound to start recording a keyboard-macro and 'F4' is bound to end recording a keyboard macro (and to replaying the last recorded keyboard-macro).

Press 'F3' to start recording a macro.

Now: when pressing 'F3' again while recording the macro, a counter is inserted which is incremented each time you play the macro back.

I found this incredibly useful in a surprising number of situations.

Press 'F4' to stop recording the macro, and press 'F4' again as many times as you need to repeat the macro.

[+17] [2008-11-26 14:56:20] Johan Dahlin

M-x rgrep

I've bound it to F4, I'm using it all the time to interactively greping for file in a recursive manner. Combine that with easy bindings for next-error (F9), previous-error (shift-F9) and you have struck gold!

It always makes my co-workers impressed how quickly I can find things. No tags needed and it's /very/ fast.

[+16] [2009-04-07 07:46:17] Nikwin

M-x shell to directly access the shell from emacs. When used with a split screen (C-x 3), it becomes very quick and easy to do things. No need to continually switch between programs.

(4) I prefer M-x eshell when running emacs on a Windows. It gives a more *nix-like experience over the native cmd.exe shell. (Plus, you can execute elisp at the command-line.) - Ray Vega
Cool, thank you for that. - Nikwin
[+15] [2010-07-14 12:32:52] jdizzle

I recently discovered C-u C-spacebar. Emacs keeps track of all the places you've navigated to, and this lets you pop off the stack (taking you to a place you were before you came to where you are). Extremely handy when chasing call trees in source code.

[+14] [2011-04-22 12:46:05] rebelbass

Select a block of code then M-; to comment/uncomment. If language is not recognized you will be prompted for correct character to use.

[+14] [2008-09-16 17:23:09] CJP

M-x gdb to test in the debugger while automatically moving through the source tree in other windows. Set break points by opening the source file and doing C-x on the appropriate source lines.

Try M-x gdba in emacs 23+ for even grand magic. - Vardhan Varma
Followed my M-x gdb-many-windows! - small_duck
[+14] [2008-09-13 19:44:52] Graeme Perrow

Compiling from within emacs, and then for each error, being able to visit the line of code causing the error with a keystroke.

[+13] [2011-03-17 08:57:37] Lindydancer

My personal favorite is follow-mode, it will make two (or three, or any number of) side-by-side windows act as one really tall virtual window.

The convenience function follow-delete-other-windows-and-split will set up two side-by-side windows and start follow mode.

Concretely, using six windows spread out across two monitors (and a small, but readable font), I can see 882 consecutive lines of code. This gives me a distinct advantage when it comes to reading and understanding code.

if you need to follow methods or functions being 882 lines long I'd tend to think you're starting with quite a big disadvantage when it comes to reading and understanding code ;) - SyntaxT3rr0r
Many files are much longer than that, even though each individual function or method aren't. Scrolling though a large file in, say, five steps makes it easier to understand it than in, say, 30 steps. - Lindydancer
(1) holy crap this sounds so freaking awesome ;) I would prefer taller monitors but I think this will be good enough for now! :P - omouse
[+12] [2008-11-01 00:33:52] binOr

How about Digit-Arguments for the next command. Before, I have always used Universal-Arguments via C-u but you can go much faster since Digit args are bound to both, Control and Meta.


  • move point 3 words forward: hold down Meta and type 3f
  • kill those lines below: hold down Control and type 33k

[+11] [2008-09-24 10:33:24] user21524

EmacsWiki [1]


[+11] [2008-09-13 13:32:15] J.F. Sebastian

Most-used and most-useful features (for me):

  • navigational keyboard bindings (M-b, M-f, C-a, C-e, etc) work well for fancy keyboard layouts. You do not use Home, End, PgUp, PgDn, arrows, therefore there is no need to relearn touch-typing when, for example, on notebook these keys are placed in unusual places.

  • It works in console (emacs -nw) as well as with GUI. And it works under Windows, Linux, Mac. You can use the same editor both in command-line and GUI environment on any OS.

  • It has server-mode which allows an instant opening of new documents in the same editor environment.

  • It allows to view several documents (and/or different parts of the same document) simultaneously. It is especially useful for wide-screen monitors.

  • Embedded command-line (M-!).

  • version-control (C-x v v - do the next logical version control operation on the current file.)

  • find, open, switch, create file, buffer (C-x C-f, C-x b) via ido.el [1]


[+11] [2009-03-01 22:38:24] libjack
C-x C-o runs the command delete-blank-lines

I know it is quite basic, but extremely useful; delete several blank lines at once, or (when cursor on nonblank line) delete any immediately following blank lines.

And vice versa, you can use C-o (open-line) to insert a blank line - Patrick
[+11] [2011-08-10 12:53:41] yokoloko

C-y M-y Let you go through all the history of copy and paste. Just magical.

+1... Under Emacs it's called "yank" (C-y by default) and "yank pop" (M-y by default). THE thing is that hitting several M-y cycle through all the earlier kills. browse-kill-ring can also be installed to easily see/browse through the entire kill ring. - SyntaxT3rr0r
[+10] [2008-10-05 21:57:59] jamesnvc

Something that can be very useful at times, especially when renaming a bunch of files: In a Dired buffer, type "e" for wdired-change-to-wdired-mode, which allows you to edit the directory using any of your normal editing commads: regex-replace, rectangle commands, etc on file names!

On a related note, the rectangle commands are also quite useful when you get used to them.

It should be noted that 'e' is not a default binding. In fact, I don't think it's bound to any key by default. - paprika
'e' is bound to (dired-find-file) (GNU Emacs 23) - J.F. Sebastian
At least in GNU Emacs 23, (dired-toggle-read-only) (which is the same thing) is bound to C-x C-q. - monotux
[+8] [2008-09-16 02:22:21] sammyo

The ediff- commands, there's a bunch of variations, up to and beyond merging a full directory tree.

M-x ediff [then tab to the variant you need.] While editing I use ediff-buffers frequently.

The | switches between vertical and horizontal layout, it's color coded to help see just which word/letter changed.

[+8] [2008-09-16 17:06:29] ehdr

Another one of my favorites is the transpose-* family of functions. They allow you to instantly switch two units of text around the current position of the cursor. For example, tranpose-words on key M-t switches the word in front of your cursor with the one behind it, tranpose-chars on C-t does the same with characters.

Perhaps the most useful variants are tranpose-lines (and especially the tranpose-line-up and -down variants of XEmacs) for moving lines around, and transpose-paragraph which switches entire blocks of code instantly.

If you really master these commands and make them part of the "active set" of emacs features that you actually use all the time, you will find that they add a whole new flow to editing code.

And, important as always, it sure does impress people who don't (yet) know the power of emacs. :)

Also for s-expressions very useful. - Svante
[+8] [2008-10-20 14:21:00] Rajish

For those coding in C in large projects cscope [1] is etags killer. Mapping the shortcut

(define-key global-map "\M-."  'cscope-find-this-symbol)

in dot-emacs will make you forget about tags.

Of course you have to index your project but here is another helper:

(setq  cscope-database-regexps 
      ( t )

Put it in your dot-emacs (there can be several entries for different projects) and (x)emacs will know where to look for symbols for current buffer, so you don't have to index whole project - just the modules you work on.

cscope greatly improves understanding and refactoring of C source in big projects. Every hit of M-. presents you an active list of symbol use with one line context.


[+8] [2009-05-14 16:58:44] community_owned

My vote goes to org mode plus remember templates,

(setq org-directory "~/org/")
(setq org-default-notes-file (concat org-directory "/"))
(define-key global-map "\C-cr" 'org-remember)

;;Remember templates
(setq org-remember-templates
      '(("Todo" ?t "* TODO %?\n  %i\n  %a" "~/org/todo/" "Tasks")
        ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/org/")
        ("Idea" ?i "* %^{Title}\n  %i\n  %a %:date" "~/org/" "New Ideas")))

[+8] [2009-05-19 08:59:52] fredz

The grep-find command

M-x grep-find

search a pattern in current directory files and subfolders

My grep-find command is customized like that :



'(grep-find-command "find . -type f -not -name \".svn-base\" -and -not -name \"~\" -and \( -name \".html\" -or -name \".php\" -or -name \".py\" -or -name \".sql\" -or -name \".js\" -or -name \".css\" -or -name \".sh\" -or -name \".tex\" -or -name \"Makefile\" \) -print0 | xargs -0 -e grep -n -s -F ")



[+7] [2009-09-23 16:45:31] Carlos Rendon

Allows you to regex search inside of all open buffers that match a regex

[+7] [2008-12-20 17:49:36] Silfheed

selective-display aka code folding aka code summarizing [1]

Code Summarizing in emacs plain beautiful(not really code folding since you're not closing up just one or two functions). It allows you to display only code that has a certain level of indentation in front of it. So you can hit a button and only classes show up or pass an argument with M- then hit the button and only the classes and the function definitions show up. Makes moving around code just plain easy. This works incredibly well with python's enforcement of indentation.


(1) Thanks, set-selective-display is new for me, and quite useful. - Joseph Gay
[+7] [2008-09-16 02:13:09] docgnome

I find the Emacs Code Browser [1] to be very useful for browsing the large code base we have at work. I also Have to say the most useful feature is really elisp itself. While I think it sucks, it only sucks compared to scheme or another lisp variant. It is by far the most powerful, imho, scripting language built into any editor.


[+6] [2008-12-03 16:45:23] robcast

tramp-mode (and/or Ange-FTP): it lets you view and edit files over SSH, FTP and other protocols as if they were local.

You may want to know that you can specify the port for FTP with "#" after the host name. At least it took me a while to find out...

(Especially useful with Zope, when you can remotely edit objects in the running instance over FTP and in the products over SSH)

[+6] [2010-12-05 06:24:59] Paulson S. Park

C-x [left] or C-x [right]: Buffer switching.

(global-set-key [C-tab] 'next-buffer), do the same with [C-tab], [C-f6] and [XF86Forward] AND (global-set-key [C-S-tab] 'previous-buffer), do the same with [C-S-iso-lefttab], [C-S-f6] and [XF86Back]. Now Emacs reacts on "next/previous" tabs the same way as normal browsers .. and IE. (The XF86 keys are special for IBM ThinkPads) - klang
Also see windmove-default-keybindings for Shift-arrow keys buffer switching - justinhj
[+6] [2010-08-10 20:52:16] zmf

For me it's rectangles. Create rectangles by placing marks (C-space)

  C-x r k (Kill Rectangle)
  C-x r y (Yank Rectangle)
  C-x r t (Prepend a prefix to rectangle)

(4) Make sure you try out the CUA-rectangles - C-enter to start a rectangle, use the normal M-w to copy etc. emacs-fu posted this as a tip, check it out! - monotux
[+5] [2010-08-21 13:35:58] Jérôme Radix

just try it on a frame with multiple windows.

looks like an RSI-inducing pinky-killer way to do delete-other-windows (bound to C-x 1 by default) no!? - SyntaxT3rr0r
[+5] [2009-05-12 22:41:18] killdash10

Have M-x shell open a new shell instead of putting the existing shell buffer in the foreground:

  '(lambda (&rest; ignore)
    (rename-buffer (generate-new-buffer-name "shell"))))

Turn off scrollbar and other UI stuff:

;; turn off scrollbars
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))

Put Backup files into their own directory:

(setq backup-directory-alist `(("." . "~/.emacsbackups")))

M-x customize-variable. Very useful for customizing emacs, also in combination with writing and customizing your own elisp functions.

Pre-canned color themes:

[+5] [2010-03-23 13:23:54] Achim Tromm

If you want to get all commands to a particular keyword just use the apropos command.

M-x apropos

This is very helpful if you want to learn new features within Emacs or if you just want to find a command by a given keyword.

Or this: C-h a - Vince
[+4] [2008-10-20 14:26:09] Ferruccio

hexl-mode is priceless for examining/editing non-text files.

[+4] [2010-08-21 13:32:40] Jérôme Radix

Flymake [1] is the tool I cannot live without when programming. Correctly configured with Makefiles (I even use flymake on Windows), you instantly see, on-the-fly, all the errors and warnings that your compiler can find.

And this tool is part of GNU Emacs by default.


[+3] [2011-12-06 19:14:21] deepakg

deft - inspired by Notational Velocity, it is now my favourite way of keeping notes from within Emacs.

[+3] [2008-09-13 15:43:25] ibz


Already suggested a few hours earlier :) - jlf
[+3] [2010-06-25 23:07:43] cristobalito

For me, it's got to be ediff - it's saved my life on a number of occassions.

(6) The mind boggles - what life threatening situation were you in that needed diff? See also - Dominic Rodger
[+3] [2010-07-14 04:07:34] community_owned

I like using rcirc client. You just do M-x irc.

Well, I used vim for years and recently I moved to emacs and I found it pretty amazing and useful that you can use an irc client from your text editor (not using irssi any more).

You can also add the following lines in your .emacs file to automatically connect to a specific IRC server or join specific channels.

(setq rcirc-authinfo '(("freenode" nicserv "your_nickname" "your_password")))
(setq rcirc-server-alist '(("" :channels ("#channel"))))

Here you cand find more infomations about rcirc Getting started with rcirc [1]

And of course there is M-x tetris in case you are bored ;)


[+3] [2009-05-05 14:26:29] Brian Postow

Many of these have been mentioned already, but here's my list:

auto-indent: I love that when I hit tab it automatically indents "correctly", regardless of the type of the file. Also, the fact that you have many options of indenting style!

elisp: I've written so many stupid little elisp functions... I love that I can just create a function that does exactly what I need... (Favorite: M-x bp-folgers-crystalyze: secretly replaces the meta-syntactic variable "foo" with folgers crystals)

indent-region: auto-indents any region. Tells you where your missing ; is immediately!

C-n C-f C-b C-p: I never use the arrow keys anymore. (To the point where I'm always annoyed that C-b gives "block quote" on SO...)

bookmarks: constantly editing .emacs? no problem.

Multiple frames, keyboard switching between frames and windows: I don't need to use the mouse!

Paren matching

comment-region: Uses mode-dependent comment syntax to comment out every line in a region.

Please share the code for bp-folgers-crystalyze :) - Readonly
It's not much: (defun bp-folgers-crystalize () "secretly replaces the meta-sytactic variable foo with folgers_crystals" (interactive) (let ( (i (point))) (beginning-of-buffer) (while (search-forward "foo" nil t) (replace-match "folgers_crystals" nil t)) (goto-char i))) [sorry for bad formatting, can't format comments evidently] - Brian Postow
[+3] [2009-01-28 13:44:10] kliketa


This insert spaces or tabs to next defined tab-stop column. It alows me to align everything with a few key presses which if very useful when you want a nice code.


int i = 1;
GtkWidget *window, *label;
double *a, *b;

can become something like this:

int          i = 1;
GtkWidget    *window,  *label;
double       *a,       *b;

Additionaly you can customize places where you want tab stop with:

M-x edit-tab-stops

Except this is annoying when looking at commits and diffs... - Vince
@Vince: yup but that's because most VCS and diff tools suck fat balls. Correct VCS / diff tools should not whine about different indentation, tabs, spaces, etc. They do. But if you think about it they really shouldn't. - SyntaxT3rr0r
[+3] [2009-02-16 00:18:42] halloleo

dired! and in there: dired-mark-files-regexp, dired-do-rename-regexp and dired-do-shell-command

when editing (blog) texts: transpose-chars (CTRL-t). :-) a command i miss in most text editors.

when programming: python-mode, its py-comment-region and py-execute-buffer (with setting py-which-shell as local varuable).

Also, dired-mark-files-containing-regexp (%-g) - ataylor
[+2] [2008-12-03 17:12:47] Nathan

I switched from using nedit and vi to emacs (now Xemacs) for column editing and the AUTOs in verilog-mode [1]. cua-mode enables the familiar key bindings - specifically clipboard (undo-Z, cut-X, copy-C, paste-V) key bindings - it really helps to ease the transition to emacs because you can use the normal emacs key bindings at the same time.

Since then I have found many modes to make (x)emacs like the IDE Eclipse only better because I don't have the performance hit (memory and speed) and I don't have to work inside of an Eclipse project. Check-out CEDET [2].


[+2] [2008-10-25 17:26:59] Greg Mattes

Not really an editor feature proper, but having a foot pedal to avoid " Emacs pinky [1]" is nice. My pedal has three buttons bound to Control, Meta, and Shift.


[+2] [2010-05-12 20:17:07] Dlf

Some of these are really basic commands, but they do help me out a lot:

  • when hacking my .emacs config or other eLisp modding I place the cursor at the end of a line and press C-x C-e to evaluate the expression. This is a true friend for emacs tweakers.
  • C-l and C-u 0 C-l to jump cursor position to middle and top of screen. This is great for reading those long lonely log files. I also have key-binding for the latter since I use it so much.
  • C-x b and C-x C-b to navigate those buffers real fast. Combine this with window splitting ( C-x 2 and C-x 3 ) and you will do magic when showing off your log analysis to colleagues and managers... :)
  • The almighty incremental search: C-s and try pressing C-w a few times after. This is also one of the most productive, commonly used features of emacs. I myself was struggling with copy-pasting to the search field before I found this cool feature. C-g shall return to the point where you started out from so no worries about that either.
  • Try key-binding window movement it is a blast in productivity:
    • (global-set-key [S-left] 'windmove-left)
    • (global-set-key [S-right] 'windmove-right)
    • (global-set-key [S-up] 'windmove-up)
    • (global-set-key [S-down] 'windmove-down)
  • Last, but not least is the almighty UNDO feature C-/ which is my personal favorite in emacs, since it reflects how easy it is to use in emacs and how we do not need a separate command for REDO, since it actually is the undo of the undo.

These might sound too simple, but are really powerful features in everyday use.

(2) To add to the almighty undo comment, being able to select a region and undo only in that region is a pretty awesome feature for me. - Adam Benzan
(1) You can also hit C-l repeatedly to cycle the current line between the center, top and bottom of the window. - akaihola
This C-l behaviour is present only after Emacs 23.2.1 or maybe as far back as 22, but if ye are destined to work on a really legacy system with no upgrade options... :) - Dlf
[+2] [2009-11-14 01:51:46] Zano

M-x toggle-truncate let's me switch of line-wrapping as a quick outline mode. Not so useful when programming, but definitely so when editing docs or html.

[+2] [2009-08-06 15:12:02] Karl Voigtland

Bongo [1]

Manage playlists and play music from within Emacs. Supports multiple different backends. It even supports streaming from internet radio. I use it to listen to internet radio feeds while working. Especially useful if working in a non-desktop environment.


[+2] [2011-07-26 04:42:44] justinhj


This function shows all the keywords used in the packages within emacs. In other words you can find a lot of stuff in emacs that you never knew was there.

abbrev        abbreviation handling, typing shortcuts, macros
bib           code related to the `bib' bibliography processor
c             support for the C language and related languages
calendar      calendar and time management support
comm          communications, networking, remote access to files
convenience   convenience features for faster editing
data          support for editing files of data
docs          support for Emacs documentation
emulations    emulations of other editors
extensions    Emacs Lisp language extensions
faces         support for multiple fonts
files         support for editing and manipulating files
frames        support for Emacs frames and window systems
games         games, jokes and amusements
hardware      support for interfacing with exotic hardware
help          support for on-line help systems
hypermedia    support for links between text or other media types
i18n          internationalization and alternate character-set support
internal      code for Emacs internals, build process, defaults
languages     specialized modes for editing programming languages
lisp          Lisp support, including Emacs Lisp
local         code local to your site
maint         maintenance aids for the Emacs development group
mail          modes for electronic-mail handling
matching      various sorts of searching and matching
mouse         mouse support
multimedia    images and sound support
news          support for netnews reading and posting
oop           support for object-oriented programming
outlines      support for hierarchical outlining
processes     process, subshell, compilation, and job control support
terminals     support for terminal types
tex           supporting code for the TeX formatter
tools         programming tools
unix          front-ends/assistants for, or emulators of, UNIX-like features
wp            word processing

[+2] [2011-12-06 19:13:56] deepakg

multi-web-mode - When you are editing mixed content (say a php file which might have a mix of html, php, css and javascript), it will enforce the correct mode relevant to the block of code that you are editing. e.g. if you are inside <script type="text/javascript">...</script> block, it'll automatically switch to javascript-mode

This looks way, way too much like nXhtml mode. - slacy
It is. Having used both, I find its handling of mixed modes a lot better. Especially when dealing with incomplete fragments of html one encounters with templating systems. - deepakg
[+2] [2010-07-25 23:29:14] duanedesign

org-mode - Org-mode is for keeping notes, maintaining ToDo lists, doing project planning, and authoring with a fast and effective plain-text system. You can use it as a GTD (Getting Things Done, note taker and web/PDF authoring.

"Put it an org-buffer and smoke it!" :-) - monotux
[+2] [2011-03-04 02:02:06] Bubbles
M-x replace-string

This command unconditionally replaces all instances of the old string in the document starting at the current cursor position. lifesaver =)

syntax: M-x replace-string {old string} [return] {new string} [return]

(1) Or short: M-% - Patrick
M-x query-replace-regexp if you want it more interactive - justinhj
[+1] [2010-12-30 14:40:49] Spike

Ctags support:

If you have a Ctags file, it will take you to the definition of the variable, very useful when working in a big project. (Certainly, Vim has similar functionality)

[+1] [2011-07-25 23:48:09] BeSlayed

AUCTeX [1], for editing (La)TeX documents. Emacs+AUCTeX is the most powerful (La)TeX editing environment I've found.


[+1] [2009-10-23 16:36:26] Richard Riley

Check out company-mode.

Excellent completion interface.

be sure to try C-s and the C-o to filter the completion candidates.

My completion set up is here:

[+1] [2011-12-06 19:13:11] deepakg

zen-coding mode - expand CSS like selectors to generate html. e.g. expand:



<div id="page">
        <div class="logo"></div>
        <ul id="navigation">
                <li><a href=""></a></li>
                <li><a href=""></a></li>
                <li><a href=""></a></li>
                <li><a href=""></a></li>
                <li><a href=""></a></li>

[+1] [2011-12-06 19:43:24] Vsevolod Dyomkin

It's amazing, that no one suggested this: kill-ring/undo-ring will transform your editing forever.

[+1] [2011-12-06 20:48:31] kickingvegas

Some of my favorites:

  • split-window-horizontally (C-x 3) - this lets you see two buffers side by side.
  • speedbar - want a tree view of the directory you're working in? This gives you that in a new frame (must be running GUI version of emacs).
  • longlines-mode - If you need to edit a text file with long lines, this mode gives you word wrap.

Thanks for speedbar. Unfortunately I work almost exclusively in text mode. I still use Midnight Commander as my primary file manager, because Emacs' dired is not... orthodox enough :) - Steven Haryanto
I would vote this up but I like two and dislike one of the features. One feature per answer would be better? - akaihola
@StevenHaryanto - np. IMHO, speedbar is in modern parlance 'hella ugly', yet gets the job done. - kickingvegas
I'm guessing @akaihola is picking on speedbar as the one he dislikes as well. - kickingvegas
[+1] [2009-08-12 03:44:37] ayman

The fastest way to checkin/out: M-x svn-status

[+1] [2008-11-29 13:31:16] Alexey Romanov

Minibuffer completion with Icicles [1].


ido-mode provides it too. Icicles is way too complicated for most people IMO. Powerful yes, but you really need to invest a lot of time and effort to come to terms with its usage. - Richard Riley
[+1] [2008-09-13 12:24:16] Mario Fernandez

@Ray Vega I think it is even better if you use hippie-expand. You can configure which functions, and in which order will be called to complete. Here is my list:

try-complete-file-name-partially, try-complete-file-name, try-expand-all-abbrevs, try-expand-dabbrev, try-expand-dabbrev-all-buffers, try-expand-dabbrev-from-kill

query-replace-regexp. The syntax sucks, but once you get used ...

[+1] [2008-09-16 06:16:01] dajobe

Little known but useful:

M-x isearch-forward-regexp

Incremental regex search that you can edit while it runs to get the regex matches correct.

(2) C-u C-s does the same thing with fewer keystrokes. - hillu
[+1] [2008-11-09 06:33:26] wallyqs

A feature that I have found very useful is that whenever you're using Tramp to access a remote server and then into dired mode on a folder on that server, you can upload files from your computer with a simple drag and drop.

[+1] [2008-11-23 17:34:59] Richard Riley

I listed some of the packages I rely on most here:

Regularly used Emacs packages [1]


your link is broken - Joakim Elofsson
I editing to what I believe is the correct link that I found on his site. - mwilliams
[+1] [2008-10-14 22:24:37] Sherm Pendley

Ubiquity. Not exactly a "feature" per se, but important nonetheless. You can log into pretty much any *nix machine in the world, and expect emacs to be there.

(12) This is more true for vi/vim than emacs. - docgnome
Even more true for ed: "The Standard Text Editor"! ;-) (I much prefer emacs to ed though!) - A. Levy
[0] [2009-01-08 13:44:08] Richard Riley

One very useful package is the BrowseAproposUrl stuff:

I added some functions to translate using google dictionary and google translate a bit easier.

[0] [2009-08-04 20:34:31] fortran

Regular expression search backwards, just because it has a funny keystroke:


[0] [2009-06-17 10:03:39] community_owned

M-x is the most useful feature

[0] [2009-05-15 22:58:48] justinhj

webjump [1]

Let's you quickly launch webpages with search terms. For example a google, wikipedia or flickr image search can be quickly launched in your favourite browser from emacs. Also you can easily hook up programming API searches.


[0] [2010-02-17 12:23:40] sandos

lock-mode! I very recently found this, and in combination with auto-revert-tail-mode emacs can easily replace most cusom tail-applications if youre in windows.

[0] [2009-09-25 17:02:52] Cheeso

TFS + emacs [1] is one of the less well-known that I've been finding to be very useful. I can checkin/checkout files from codeplex, add or delete files, diff, rename, undo, etc.

Maybe not the single most useful feature, but very useful.


[0] [2011-12-06 20:57:59] sahglie

browse-kill-ring keeps previous yank in a buffer for browsing

magit interface with git (

[0] [2011-12-10 14:02:28] Gubatron

Incremental search. My S key on all my computers is always faded out C-s C-s C-s

[0] [2010-07-14 13:06:56] dcm

For me, the single most useful feature is my .emacs file - there is a lot of power to be had in a scripted config.

[0] [2010-12-10 17:01:20] Darkosa

Xslide [1] even if it is old is soooo useful in my day-to-day work when writing a lot of xslt code. Many features like automatic completion of end-tags to mention some. Run an configurable XSL processor e g Xalan to validate your xslt files.

C-x C-p will start the validation process and give you the exact line where syntax is wrong


[-1] [2010-08-21 14:04:59] shk

M-x gdb for debugger

M-x shell for runing code

f9 - compile

f10 - recompile

and CUE for C-c C-v C-x for copy/past/cut