emacs

Unable to move to a previous point in Emacs

Let's assume that I am at manual A. I press enter and I am now at manual B. How can you return to the previous manual by one command in Emacs? ...

Unable to clear a beginning of a line by C-u in Emacs

I run the following command in Emacs unsuccessfully C-u How can you clear the beginning of a line in Emacs? ...

In which file was the keybinding defined?

Considering a keystroke in Emacs, e.g. C-x C-s. I can figure out which function it invokes by typing C-h c keystroke, but how can I find where this keybinding was defined? (Maybe the right answer is that it cannot be decided, because the keymaps don't store this kind of information.) ...

emacs working with big xml files

Often I need to read big XML files (> 100 MB) which have a fairly simple structure. I would like to use emacs, but it does not support big files very well. I am thinking maybe I can use a java application which can do SAX or StAX parsing for me and provide me with all necessary operations (e.g. search). What is the "right way" to communi...

Splitting window in Emacs Lisp function

I'd like to be able to run a shell command on the current file that I'm editing and have the output be shown in the Shell Command Output window. I've been able to define the function which is shown below. (defun cpp-check () "Run cpp-check on current file the buffer is visiting." (shell-command (concat "/home/sburke/downloads/c...

Emacs Pabbrev and Python

Normally when you hit tab on an empty line in emacs python mode it will cycle through the available tab indentations. When I hit tab when the point is at the deepest indent level I get the pabbrev buffer containing the last best match options. Does anyone else have this problem, is there an easy way around it without writing any elisp?...

how do I make emacs auto-indent my C code?

I'm just starting to get a feel for emacs, but I am frustrated with it's tendency to not indent when I press the return key. I know if I press C-j it will do it, but I can't get into that habit. I just can't. I need to hit return, and I hate re-tabbing every time. I went into the options and found C mode hook, and C++ mode hook, etc--an...

Emacs: Is there a way to generate a skeleton ChangeLog from diff?

I'd like to partly automate creation of GNU-style ChangeLog entries when working with source code in version control. The add-changelog-entry-other-window works with one file at a time and you have to visit the file to use it. What I'd like to see instead is to have some command that would take an output of diff -u -p (or have integrati...

How to use svn with emacs (psvn can't create tunnel)

We just installed svn at my office. TortoiseSVN works (with putty to do the ssh thing--sorry if this doesn't totally make sense, I'm a total svn newbie, I always used cvs). I found psvn for emacs, which seems to be pretty standard. When I tried running it, it said it couldn't find svn. So I downloaded the client from tigris.org--which ac...

How can I operate on more emacs buffers at the same time?

I am looking for an equivalent of the ":bufdo" Vim command in Emacs. ":bufdo" takes an argument - another command - and executes the command on all open buffers. I have not yet found a similar feature in Emacs - any suggestions? Thanks. ...

Passwords in Emacs tramp mode editing

I'm using emacs tramp mode to remotely edit files over ssh. The problem is that every time I save the file I'm editing I have to enter my user password. I find that very annoying. How can I write my password only once / editing session? ...

Mapping Caps Lock to Control from within emacs on Windows

When reading either of these questions or the EmacsWiki article about mapping Caps Lock to Control in emacs in Windows, the best answers seem to involve the registry. My question is what a user can do when they can't modify the registry of the machine because they don't have admin rights. Is there a way to do the mapping from within emac...

A good project tree browser for Emacs?

Do you know of a good project tree browser for Emacs other than the Emacs Code Browser (ECB)? The features I value are simplicity, lightweightedness, and language agnosticism. ...

Bash in vi-mode: browsing shell history with cursor up/down, cursor position not at the end?

I'm very fond of vim and really would like to enhance my bash experience with vi-mode. However one thing I'm so accustomed to the emacs behavior in that, when browsing the shell history with cursor up/down, the cursor is positioned at the end of the line. In vi-mode it's the other way around; the cursor is always positioned at the begin...

Is there a way to enable both Objective-C mode and C++-mode at the same time in emacs?

I'm working with some Objective-C++ code (.mm files), and I'm curious if it's possible to get emacs to use proper syntax highlighting for both the Objective-C parts and the C++ parts. objc-mode and c++-mode are both major modes (built on top of cc-mode), so they can't be used at the same time. Are there any minor modes or elisp hacks a...

How to do remote development with emacs?

I started using emacs as my main editor a few days ago, and I'm in the process of gathering all customizations I need. The main usage I'm giving it is for development of a C project on a remote Linux machine (RHEL 5). So far I was using plain vim (only as a text editor) and a bunch of shell scripts, and one day I decided I would try ema...

Is there an ipython equivalent for erlang?

Coming from Python I am looking for some "easy to try out" shell like Python has with ipython (preferably with Emacs support). In the Erlang shell you always have to first compile (c(...)) which slows down the experimental phase very much. ...

What alternate session managers are available for Emacs?

I have read the page in Emacs wiki which contains a list of session manager plugins. But after trying all of these, I am still not happy with any of them. By comparison, the VIM session manager saves and loads sessions by name, which is one of the most important features for me. In particular, I want a session manager for Emacs that: ...

Smart electric brace in cc-modes (C#, Java, etc.)

In various IDEs, typing an open-curly results in the appearance of a matched pair of brace characters. Typically the braces are inserted in some context-sensitive way. Within a string literal, there is no intervening newline inserted between the braces. Outside a string literal, there is a newline, and things are indented immediately....

emacs typeover skeleton-pair-insert-maybe

In Eclipse, editing Java code, if I type an open-paren, I get a pair of parens. If I then "type through" the second paren, it does not insert an additional paren. How do I get that in emacs? The Eclipse editor is smart enough to know, when I type the close-paren, that I am just finishing what I started. The cursor advances past the cl...