Emacs is a powerful text editor with an embedded Lisp environment, which allows for great extensibility. Emacs is a lisp environment with many features that also make it a powerful text editor.

learn more… | top users | synonyms

1
vote
2answers
2k views

Setting default working directory/drive in Emacs shell on Windows

how can I change a default working directory/drive for shell in Emacs (on Windows)? Normally, shell starts in the same directory as the file in current buffer. However, when my current file is on D: ...
3
votes
5answers
163 views

What is the quickest way to 'find' a file in an often used directory in Emacs?

I access a lot of files from a certain directory which is not ~ but say: D:\Mijn documenten\My Dropbox. What is the quickest way to 'find' a file in that directory within a new Emacs session? Using ...
2
votes
2answers
270 views

Emacs: incremental search with rgrep and lgrep

Is there an rgrep and lgrep version of incremental search?
6
votes
4answers
12k views

How can I apply a color-scheme (.el file) in emacs?

I have downloaded zenburn.el that is a color-scheme for Emacs, but I don´t know how I can apply it to emacs. I am a beginner in emacs. How do I apply my .el file to emacs? Can I do some linking from ...
1
vote
2answers
2k views

Linux: No fonts match '9x15' when starting emacs

I get the message No fonts match '9x15' when trying to run emacs and a linux box. I messed something up a while back, but I do not know how to fix this issue. Any ideas?
7
votes
2answers
1k views

How can I export an evernote account into Emacs.org?

I am currently using evernote but I have since moved to emacs for many tasks so I would like to access everything from emacs. How can I move all my evernote data to emacs-org mode?
6
votes
5answers
1k views

How do I open several files at once in Emacs?

Often when I start emacs I open the same set of files. How can I make it so that I can quickly select several files from a directory and open them?
4
votes
3answers
141 views

Is there a version of Emacs thats runs exactly the same on OSX, Windows and Linux?

I'm using Emacs on different environments and unsure of which version to use so that they all behave the same as I hear there are differences between XEamcs, Emacs, and some other versions. Which ...
14
votes
3answers
6k views

How can I hide the Tool-bar in Emacs persistently?

I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options > Show/Hide > Tool-bar. But the Tool-bar comes back next time I start emacs. How can I hide it ...
6
votes
4answers
1k views

Is there any way to convert camel-cased names to use underscores in emacs?

For instance, I want to convert "CamelCasedName" to "camel_cased_name". Is there a way to do this in emacs?
1
vote
3answers
1k views

sending mail using mutt + emacs

How to sent mail from emacs? I found this There are two ways to send the message. C-c C-s (mail-send) sends the message and marks the mail buffer unmodified, but leaves that buffer selected so ...
3
votes
2answers
2k views

How to fix emacs popup dialogs on Mac OS X?

I'm out of ideas here - my emacs crashes when popup dialog is opened. The x-popup-dialog function is probably to blame but I found no workaround to this. My Emacs version is 23.1.1 . Unfortunately ...
16
votes
5answers
5k views

Word count for LaTeX within emacs

I want to count how many words my LaTeX document has in it. I can do this by going to the website for the texcount package and using the web interface there. but that's not ideal. I'd rather have ...
5
votes
4answers
1k views

emacs starting maximised

I want a keyboard shortcut to open emacs in a maximised window. I tried emacs --fullscreen, but that is full screen rather than maximised window... That is, the emacs window covers ubuntu menu bars. ...
1
vote
1answer
266 views

Emacs ignores Ctrl+/ keystroke

When I run emacs on an ssh session to a Linux box via Terminal.app, it ignores Ctrl + / key combo (undo). How to stop this?
9
votes
8answers
3k views

Emacs equivalent to VIM ci"?

Does emacs have the equivalent of VIMs ci" command? Basically I want to replace the text inside a set of quotation marks. In vim I can ci) or ci] or ci} to "change inner *"...
7
votes
3answers
6k views

How can I specify the repository from which a package will be installed? (emacs-snapshot)

I want to install emacs-snapshot from http://emacs.orebokech.com But there is already an emacs-snapshot in Ubuntu's repositories. How can I specify the repository from which a package will be ...
0
votes
3answers
687 views

Gnome terminal eats emacs undo key sequence

I am running emacs 21 in gnome-terminal with the --nox option. When I press C-_, the font size decreases instead of emacs undoing my previous action. How do I prevent gnome-terminal from eating the ...
1
vote
2answers
105 views

Exited Emacs without saving, did it save the file somewhere?

I am using Emacs on Windows XP. Had it open to take some notes in a meeting, but forgot to create a file first (the text got created in the usual "scratch" buffer). Then I closed a lot of applications ...
2
votes
1answer
1k views

Adding autocomplete options to auctex C-c C-e?

When I'm using auctex with emacs to write LaTeX documents, I would like to be able to add a couple more options to the list of environment types that auctex "recognises" and can autocomplete, namely ...
2
votes
2answers
1k views

Locate All Emacs Autosaves and Backups in one folder

What do I need to add to my .emacs to get it to save all of my autosaves and backups into one directory? I don't do a lot of .emacs configuration, and I just can't get the variables out of emacsWiki ...
1
vote
1answer
1k views

How to set different color theme for different Emacs frames?

I prefer dark color themes for editing source codes while programming but I'd like to use a brighter background with black characters when writing text in org-mode. How can I set different color ...
6
votes
3answers
4k views

Disable Windows Key hotkeys when using Virtualbox

I'm currently running a VirtualBox of Arch Linux with Windows 7 x64 as the host. In Arch, I use dwm for window management. As dwm is heavily dependent on hotkeys, I've used the Alt key as its META key ...
0
votes
1answer
114 views

What's the key sequence to run a function by typing the function name in emacs?

Suppose I add a new word count function to my .emacs file to count words: (defun word-count nil "Count words in buffer" (interactive) (shell-command-on-region (point-min) (point-max) "wc -w")) I ...
2
votes
1answer
860 views

How to tell emacs gdb to show current code line in the center of buffer?

Using the debugger in emacs is nice: You can step through the code with the next command, and emacs will always show the code line that is currently executed, like this: int x; int y; =>int z; ...
0
votes
2answers
114 views

Emacs check syntax of file before saving

How I can prevent Emacs from saving my buffer when it contains syntax errors ? It would by especially useful for editing source code. I'm writing some source code into the buffer, hit C-x C-s and ...
6
votes
3answers
2k views

Word 2007 files on emacs?

Is there a word-2007 mode for emacs?
6
votes
3answers
287 views

How do I log M-x usage in emacs?

I want to log my usage of M-x in emacs to a file so that I can see which functions I should learn the shortcut to / bind a shortcut for. This would preferably just append the names of the used ...
2
votes
2answers
781 views

How to resize an Aquamacs window?

When I disconnect my external cinema display monitor from my Mac laptop (running OS X 10.6), many windows become overly sized, especially Aquamacs (and the terminal window). It creates a frustrating ...
0
votes
2answers
255 views

Emacs M v doesnt work on OS x?

Whenever I try to scroll up a pagewith Esc v on os x it only allows me to perform the action once, then I have to release the esc key and press it again. Is this a bug?
4
votes
3answers
7k views

In emacs how can I keep many files open at once?

At the moment I use C-xC-f to open a new file, but it gets quite tedious.
4
votes
2answers
580 views

How to perform search and replace in lots of files with Emacs at once?

I'm looking for a solution to how to perform a search and replace in all files in a directory using Emacs.
3
votes
3answers
6k views

where is the .emacs files in Snow Leopard?

where is the .emacs file in Snow Leopard? I need it to configure Emacs.
6
votes
1answer
3k views

Configure emacs to insert spaces when pressing the the tab key [duplicate]

How can I configure emacs so that when I press the the Tab key it inserts spaces?
2
votes
3answers
216 views

How do you go to the end of the line in emacs?

How do you go to the end of the line in emacs?
13
votes
1answer
2k views

How to get back to insert mode in VIM when you accidentally hit C-x C-s

Given this vim session: % vim test-file.txt iHello there!C-x C-s How do I get back to insert/command mode again? (C-x C-s means Control-x Control-s, not sure if it's normal vi terminology for ...
2
votes
2answers
446 views

Why can't Emacs on Mac OS X find the Info directory node?

The default Emacs on Mac OS X, 22.1, appears to have some problems with the info/help stuff. When you hit C+h i, it says: Can't find the Info directory node. It works in AquaEmacs, but I ...
7
votes
4answers
2k views

How can I prevent the python.el that ships with Emacs 23 from EVER loading?

I use python-mode.el instead of python.el for python work, and all of my customizations depend on it. However, periodically for some reason the python.el that ships with Emacs23 will magically get ...
4
votes
2answers
1k views

Quickly navigating Emacs buffers on a dual display setup

If I have an Emacs frame on each of my displays, how can I easily navigate buffers between the two displays? I typically use shift + arrows to jump to the direction of the buffer I'm looking for, but ...
2
votes
2answers
846 views

What is the difference between typing `emacs-x` and `emacs`?

When in a Linux terminal, what is the difference between typing emacs-x and emacs?
4
votes
1answer
1k views

emacs as a pager?

I am looking for a way to use emacs as my pager command in the shell (for example with man or to scroll the output of an asynchronous command with a large amount of output). I use emacsclient as my ...
1
vote
2answers
2k views

emacs error: “Symbol's value as variable is void: hostname”

After I installed emacs this error occurs every time on startup. It prevents me from installing plugins, e.g. auctex via aptitude. I already tried to install a plugin by hand (rails for ruby), but ...
2
votes
3answers
93 views

Can “~/” be re-bound to point somewhere else?

I'm using Emacs on Windows XP and whenever I type in "~/" it automatically replaces that with a directory, in my case its "C:/Documents and Settings//Application Data". Is there any way I can get that ...
1
vote
1answer
545 views

mapping capslock to ctrl on centos

How can I map Caps Lock to Ctrl on CentOS. It's a CentOS server that I SSH into so there isn't a window manager or anything like that.
18
votes
1answer
2k views

How to split Emacs over a dual monitor?

I would like to split Emacs over a double monitor. How do I do that?
1
vote
2answers
548 views

Use Cygwin Bash automatically in Emacs

I run EmacsW32 on Windows XP. I would like to know how to tell Emacs to start a Cygwin shell when I do M-x shell. Right now it starts a Windows cmd shell and I have to start the Cygwin shell ...
2
votes
2answers
344 views

multiple IRC clients, none of them connecting

I'm having a bit of trouble connecting to IRC servers with certain clients. First I was using irssi and naim through Cygwin, and I thought that the problem was with Cygwin, so I tried out ERC (the ...
4
votes
4answers
986 views

Save Emacs window size on Windows XP

Recently i bought laptop with Windows XP. I'd really like to start using emacs on it but there is one problem - when I start emacs it just do not fit vertically to my screen. So every time I launch ...
0
votes
1answer
337 views

cygwin - irssi not connecting and screen capturing c-a

I've got two questions regarding cygwin usage. I'm trying to run Irssi using Cygwin but it won't connect to any server i give it even if I can connect from other, non-cygwin clients like mIRC and ...
2
votes
2answers
484 views

Making emacs frames/windows inviolate for emacs auto changes

I was wondering if there is a way to mark certain frames in a split window emacs session as inviolate to changing. I normally have 4 frames for sources files and 2-3 frames for other views such as ...