emacs

How do I checkout files under Perforce from within Emacs?

I use Perforce for source control at work and I want to 'open for edit' files that under source control from within Emacs. How can that be done? What do I need to setup in Emacs? Is there a plug in? I also want to perform other p4 operations such as submitting my changes, etc. ...

Eclipse Sytle Function Completions in Emacs for C, C++ and JAVA?

How Do I Get Eclipse Sytle Function Completions in Emacs for C, C++ and JAVA? I love the power of the Emacs text editor but the lack of an "intellisense" feature leaves me using Eclipse. ...

Page down and Page up in Emacs

I am trying to learn Emacs and trying to find best keyboard layout for me. One thing is really annoying me. I have added following lines to .emacs (global-set-key "\C-y" 'scroll-up) (global-set-key "\M-y" 'scroll-down) And it works but, if I hold Control and press ‘y’ few time it will scroll page down every time bat if I hold Windows ...

Can emacs re-indent a big blob of HTML for me?

When editing HTML in emacs, is there a way to automatically pretty-format a blob of markup, changing something like this: <table> <tr> <td>blah</td></tr></table> ...into this: <table> <tr> <td> blah </td> </tr> </table> ...

Spell-check in Aquamacs Emacs won't work: "Wrong endian order."

This is aquamacs 1.5 on a macbook. Exact error when I try to spell-check: Error: The file "/Library/Application Support/cocoAspell/aspell6-en-6.0-0//en-common.rws" is not in the proper format. Wrong endian order. ADDED: I indeed had the wrong version of cocoAspell. But installing the right version didn't work until I actually wiped (...

When editing Lisp code, can emacs be configured to display each nested level of parentheses in a different color?

In other words, a block of code like this: (setq initial-major-mode (lambda () (text-mode) (font-lock-mode) )) ... would come out looking like something like this: If something like this already exists, what is it? And if it doesn't exist, how should I go about writing it? ...

Where can I find a video of a professional using Emacs?

I want to see a video of somebody using Emacs really, really well. Not an instructional video, just something that shows off its raw power. I want to be dazzled. The inspiration for this question is the following quote: "You have to be way smart to use [Emacs] well, and it makes you incredibly powerful if you can master it. G...

How to emulate Emacs’ transpose-words in Vim?

Emacs has a useful transpose-words command which lets one exchange the word before the cursor with the word after the cursor, preserving punctuation. For example, ‘stack |overflow’ + M-t = ‘overflow stack|’ (‘|’ is the cursor position). <a>|<p> becomes <p><a|>. Is it possible to emulate it in Vim? I know I can use dwwP, but it doesn’t...

in emacs, what is the opposite function of other-window (C--x o) ?

other-window advances me to the next frame in my frame list. But I also want a way to advance me to the previous frame. Emacs has next-buffer and previous-buffer, but not a next-window, previous-window. Just other-window. ...

How do I make Emacs start without so much fanfare?

Every time I start Emacs I see a page of help text and a bunch of messages suggesting that I try the tutorial. How do I stop this from happening? ...

How do I stop Emacs from automatically editing my startup file?

Emacs edits my .emacs file whenever I use the customization facility, or when I type a command that is disabled by default. Any automatic editing of my configuration makes me nervous. How can I stop Emacs from ever editing my .emacs. file? ...

How to invoke an interactive elisp interpreter in Emacs?

Right now I write expressions in the *scratch* buffer and test them by evaluating with C-x C-e. I would really appreciate having an interactive interpreter like SLIME or irb, in which I could test Emacs Lisp expressions. ...

Smart home in Emacs

Can you have smart behavior for the home key in Emacs? By smart I mean that instead of going to the character number 0, it should go to the first non-blank character, and go to 0 on a second pressing, and back to the first non-blank in a third and so on. Having smart end would be nice as well. ...

Emacs: How do you store the last parameter supplied by the user as the default?

I'm writing an interactive function that I'd like to have remember the last argument the user supplied and use it as the default. (defun run-rake (param) (interactive "sTask: ") (shell-command (format "rake %s" task))) The first time the function is invoked I want it to remember the argument the user supplied so that the next ti...

Using emacs tramp vs. rsync for remote development

I have been doing some remote development using emacs tramp and found that it was quite slow. Every time I save a file, it takes about 10 seconds to complete the save. So, now I am using rsync to transfer the files remotely and it works much faster, it takes about a second plus the local saves from emacs are instant. Are there any con...

Does the Eclipse editor have an equivalent of emacs's "align-regex"?

I've been using Eclipse pretty regularly for several years now, but I admit to not having explored all the esoterica it has to offer, particularly in the areas of what formatting features the editors offer. The main thing I miss from (X)emacs is the "align-regex" command, which let me take several lines into a region and then format the...

Yasnippet and pabbrev working together in Emacs

I am trying to get the yasnippet and pabbrev packages working together with emacs, but I cannot seem to get any love. How can I get them to play nicely together? The crux of the problem is that pabbrev and yasnippet are binding to the tab keys. Both packages seem to do this fallback when a match isn't found, but they don't fall back p...

How do I control how Emacs makes backup files?

Emacs puts backup files named foo~ everywhere and I don't like having to remember to delete them. Also, if I edit a file that has a hard link somewhere else in the file system, the hard link points to the backup when I'm done editing, and that's confusing and awful. How can I either eliminate these backup files, or have them go somewhe...

What's in your .emacs?

I've switched computers a few times recently, and somewhere along the way I lost my .emacs. I'm trying to build it up again, but while I'm at it, I thought I'd pick up other good configurations that other people use. So, if you use Emacs, what's in your .emacs? Mine is pretty barren right now, containing only: Global font-lock-mode!...

How do I create a directory from within Emacs?

How exactly can I create a new directory using Emacs? What commands do I use? (If possible, please provide an example) ...