emacs

What is the best way to do java development in emacs?

What modes are the best? And any tips or tricks that make developing java in emacs a bit better. ...

Emacs and Python

I recently started learning Emacs. I went through the tutorial, read some introductory articles, so far so good. Now I want to use it for Python development. From what I understand, there are two separate Python modes for Emacs: python-mode.el, which is part of the Python project; and python.el, which is part of Emacs 22. I read all in...

Emacs on Mac OS X Leopard key bindings

I'm a Mac user and I've decided to learn Emacs. I've read that to reduce hand strain and improve accuracy the CTRL and CAPS LOCK keys should be swapped. How do I do this in Leopard? Also, in Terminal I have to use the ESC key to invoke meta. Is there any way to get the alt/option key to invoke meta instead? update: While the control ke...

Bash autocompletion in Emacs shell-mode

In the GNOME Terminal, Bash does smart auto-completion. For example apt-get in<TAB> becomes apt-get install In Emacs shell-mode, this auto-completion doesn't work, even after I explicitly source /etc/bash_completion. The above example sticks as in or auto-completes with a filename in the current directory rather than a valid apt-ge...

Not restarting Emacs

How do I load the edited .emacs file without restarting Emacs? ...

php mode for emacs

I'm having trouble with my php code not indenting correctly... I would like my code to look like this if (foo) { print "i am indented"; } but it always looks like this: if (foo) { print "i am not indented correctly"; } I tired googling for similar things and tried adding the following to my .emacs, but it didn't work a...

How do I disable the "smart insert" function that is bound to the Tab key in the Visual Studio emacs mode?

In both the Visual Studio emacs mode and the default mode the tab key is bound to Edit.InsertTab. However, in the emacs mode the tab button jumps to where it expects the next line to start instead of inserting a tab. Is there a way to disable this "smart insert" while keeping the emacs key bindings? ...

Create aliases in emacs?

Hi, I have a copy of emacs that I use on a couple of different (windows) computers from a thumb drive, and I am wondering if it is possible to create something that is sort of the equivalent of a bash alias or symlink within emacs? Something that I could use within find-file is the main thing that i'm looking for, so for example: C-f <so...

How to prevent Windows XP from stealing my input Ctrl-Space which is meant for Emacs

I am learning and using Emacs. What I found annoying is that Ctrl-Space input will be stolen by Windows XP to switch the language bar instead of setting the mark in Emacs. The "language bar" is the native input languages selection such as Chinese keyboard other than English keyboard. Is there a way to temporarily prevent XP from steal...

How do I change read/write mode for a file using Emacs?

If a file is set to read only mode, how do I change it to write mode and vice versa from within Emacs? ...

Best way to navigate duplicate tag definitions in emacs

Within emacs, what are the best options out there for navigating to a specific function whose name might show up across several different files? Within etags, you are only allowed to cycle through the tags one-at-a-time which could take a while if the function name you are looking for is popular. ...

gvim and gdb for C?

In emacs there is a handy way to launch the gdb and gui options for gdb, the C debugger. Is there a similar option in gvim? ...

In Emacs how to switch to other buffer?

The problem is following: I want to automate the way my emacs starts. It has to be split in two buffers and the slime-repl has to be started in the smallest (bottom) buffer. Plus, I want my file to be opened in the bigger (upper) buffer. In my .emacs there are lines: (slime) ... (split-window-vertically -6) (switch-to-buffer (other-buff...

emacs/ubuntu initialization

Odd behavior loading emacs on ubuntu, there seems to be some initialization that goes on that is not in the .emacs nor in any of the files emacs reports loading through "emacs --debug-init". I've found some references to font-related resizing but this behavior doesn't seem to be limited to that (e.g reappearing menus and toolbars). Doe...

Is there a mode for Visual Basic (VB6) in Emacs?

I would like to use Emacs to edit some VB6 files but Emacs does not appear to have any of built-in niceties of other languages such as syntax highlighting, etc. Any plugins/extensions? What else can I do to make Emacs an acceptable and comfortable IDE for VB? ...

Where can I find my .emacs file for Emacs running on Windows?

I tried looking for the .emacs file for my Windows install for Emacs but could not find it. Does it have the same filename under Windows as in Unix? Do I have to create it myself? If so, under what specific directory does it go? ...

How can I get Emacs style key bindings in Visual Studio?

How can I get Emacs style key bindings in Visual Studio? Is it available in Settings? Do I need a Plug-in? ...

How do I get to the menu in emacs in console mode?

if you launch emacs using the -nw flag to force a console session (rather than an X session if you have X windows running), how do you get to the menu. There are some items held in the menus that are infrequently-enough used on my part that I don't recall the escape or control sequence to do them. ...

Is it possible to have an alias for the function name in lisp?

...just like packages do. I use Emacs (maybe, it can offer some kind of solution). For example (defun the-very-very-long-but-good-name () ...) is not to useful later in code. But the name like Fn-15 or the first letters abbreviation is not useful too. Is it possible either to have an alias like for packages or to access the documentati...

Why do old editors like Vim and Emacs expose the difference between a File and a Buffer in the interface?

Does my question make sense? Using either Vim or Emacs, you come to understand that the interface exposes the code's representation of the state of the file you are editing in the buffer, the file is the on-disk storage you can fill a buffer from or write a buffer to. All these things a programmer would know, but when just editing text, ...