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

0
votes
3answers
679 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
3k 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
852 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
249 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
570 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?
11
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
444 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
843 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
538 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
537 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
342 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
985 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
333 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
481 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 ...
4
votes
2answers
2k views

emasc temp file cleanup

When I edit files with emacs, emacs creates a file with the same name, but with a tilde on the end: notes.txt~ When I save my changes and exit emacs, it doesn't remove the temp file. Is there a ...
1
vote
1answer
111 views

best emacs command for search-navigating your command-line

I've noticed my navigation of my own command-line is rather clunky, e.g. for a command like: % someCommand.pl --foo 123 --bar 456 --foobar 789 My cursor begins on the "9" and I want to move it to ...
1
vote
2answers
354 views

Capturing and parsing xterm cut buffer in emacs

I'd like to make an indirect control for Emacs (in Ubuntu Linux) so that I can swipe some text in an xterm with the cursor, cutting it into the X cut buffer, then run a macro in Emacs to parse the ...
1
vote
4answers
1k views

Emacs and Dvorak

I'm a dvorak typist and a vim power user, and I'm just starting to do some heavy development in a LISP and I figured I'd give emacs a shot. The trouble is, some of the commands are awkward on dvorak. ...
3
votes
1answer
1k views

Permission denied when running Emacs from Cygwin console

When I run Emacs from the Cygwin console I get the following error message: bash: /usr/bin/emacs/ :Permission denied I have not changed any settings. I tried to change the autosave settings in ...
2
votes
1answer
285 views

Finding Wanderlust dependecy Emacs packages

I'm trying to install Wanderlust, but it needs other Emacs libraries. Does anyone know where to find SEMI, APEL, and FLIM? The manual says it should be on ftp://ftp.m17n.org/pub/mule/, but my DNS ...
1
vote
1answer
533 views

GNU/Linux: Open programm in Konsole / Term

How can you run an application directly inside a Konsole (KDE) or Terminal (GNOME)? I'm particularly interested in having a shortcut to Emacs: emacs -nw Being in KDE, that would open a Konsole and ...
0
votes
1answer
170 views

Activating Emacs' kill-ring in Regex-builder

How can you activate Emacs' kill-ring in Regex-builder? My regex " [a-zA-z/0-9-.]*" hilights stuff which I want to be removed. I put the regex to kill ring by C-c C-w. I unsuccessfuly activate the ...
1
vote
2answers
66 views

C-l multiple times doesn't work in Emacs

The way C-l used to work with multiple presses was: Center window on cursor Move window so cursor is on first line Move window so cursor is on last line Now C-l just centers, with multiple presses ...
19
votes
3answers
6k views

C-x C-c not working in Emacs 23.1

I am using Emacs 23.1 with Cygwin but when I try to exit by pressing C-x C-c it says C-x C-g is undefined and I am not able to exit.
2
votes
2answers
210 views

Is there a way to use C-C for copy and C-V for paste in emacs?

I know about cua-mode, but I'm specifically wanting to bind C-C and C-V (the uppercase versions) to be like the terminal in Gnome. Is there any way to do this? I tried this, but it gave me all kinds ...
1
vote
1answer
274 views

Using emacs interactive functions on gnu emacs, mac os x

For some reason, emacs functions which use the interactive form don't work for me on Mac OS x. The emacs I am using is from emacsformacosx.com, which up until now has worked flawlessly. An example ...
4
votes
2answers
662 views

How do I get bash to respect my physical directory structure? (And likewise for Emacs?)

If in bash, I do "set -P" then bash follows the "physical directory structure" when doing "pwd" and "cd .." etc, rather than the "logical one" that might be defined via symlinks. Unfortunately, bash ...
6
votes
4answers
3k views

Alternative to arrow keys in Google Chrome location bar

I like Google Chrome because it is fast but I don't like using the arrow keys in the location bar to complete URLs. Is there any extension, or setting I'm missing, that allows me to use the Tab key ...
0
votes
3answers
569 views

Is there a hotkey for paste in ubuntu emacs?

Is there a hotkey for paste in ubuntu emacs? The terminal hotkey (Crtl-Shift v) for instance does not work.
0
votes
1answer
2k views

Multiple email accounts from the same server in Emacs Gnus

I'm trying to set up Gnus to use both my gmail accounts but I can only ever get one at a time to show up in the list of folders. (setq gnus-select-method '(nnimap "work@mywork.org" ...
0
votes
1answer
132 views

Changing Ion3's command key to Mod3+

How can you change successfully Ion3's command key to Mod3+ that is the Windows key at the left-hand-side? I put META="Mod3+" at the beginning of my /etc/X11/Ion/cfg_ion.lua, but Meta remains to be ...