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

10
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
434 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
830 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
975 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
1k 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
91 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
512 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
506 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
337 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
971 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
326 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
471 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
110 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
349 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
532 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
65 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
206 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
273 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
649 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
558 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
131 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 ...
2
votes
2answers
1k views

Emacs shell mode problem

While emacs shell mode when I run ls I get following [0m[01;32mmanage.py[0m [01;34mtemplates[0m these must be manage.py and templates. Why its like that and how can fix it?
5
votes
1answer
2k views

How do I stop emacs from creating backup files?

I know there's probably a very good reason for it (i.e. backup) - but for personal reasons (it's just annoying me), is it possible to stop emacs from creating a backup of every file I edit? I'm ...
1
vote
1answer
436 views

How do I get my cocoa emacs on Mac OS X to load my .emacs visual customizations for new windows (any document opened after the first)?

So I just downloaded emacs 23.1 for my new snow leopard macbook pro from http://emacsformacosx.com/ and it works like a charm, except... I have visual customizations in my .emacs, a few lines are ...
2
votes
3answers
3k views

Using C-M-% to do a query-replace-regexp in Emacs running in Mac terminal

I am trying to do a regular expression search-and-replace in Emacs, running in the Terminal program on my MacBook Pro, which is running OS X 10.6.2. As far as I know, this can be done by pressing ...
1
vote
3answers
636 views

How to make emacsclient wait when using the --eval option?

I'd like to invoke emacs' ediff-merge-files function for merging files with the unison file synchronizer. To avoid starting a new instance, I prefer using emacsclient: emacsclient --eval ...
4
votes
2answers
3k views

How to fall back to the default Color Theme in Emacs?

I have applied a Color Theme. How can I get back to the default theme without restarting Emacs (version 23)?
0
votes
1answer
330 views

What is the difference between dired-tree-up and dired-up-directory?

It took me a while to figure out how to go up a directory in dired. If I run dired-tree-up, I get the following error: dired-tree-up: Cannot go up to /home/jason/src/ - not in this tree But ...
8
votes
5answers
7k views

How to run 'emacs' in the terminal emulator without a separate window?

I am looking to switch to Emacs from Vim and one thing that is keeping me away is that Emacs opens up a separate window of its own when run under X. Can I get the same behavior for Emacs as it does ...
1
vote
2answers
654 views

How to save multiple window arrangement in emacs?

GNU Emacs 23.1, Windows XP. I usually split a frame to four windows. How can I save this arrangement and restore at my next session? Commands desktop-save and desktop-change-dir don't remember what I ...
4
votes
2answers
9k views

How to do select column then do editing in GNU Emacs?

I've been using ViM, TextMate, and GNU Emacs for years. For example here is the text I want to edit foo foo foo And here is the text result I want to have bar foo bar foo bar foo When I'm on ...
1
vote
2answers
2k views

On OS X, how do I start Cocoa emacs *and* bring it to front?

I wrote a little zsh function to allow me to run emacs from the command-line: function emacs() { /Applications/Emacs.app/Contents/MacOS/Emacs $@ & } This works perfectly, but it seems to ...
10
votes
8answers
22k views

Where is .emacs file?

I downloaded emacs 23.1 from gnu's ftp. untarred it and built it after configuring. I do not find .emacs file in my home directory or anywhere in my system ! Am i missing something ?
0
votes
4answers
1k views

How do I manage newlines in Latex?

So, maybe I missed something completely when I started using Latex, but I have a difficult managing newlines in the Latex source. I have to put hard returns at the end of lines because even powerful ...
28
votes
7answers
26k views

Can I create a link to a specific email message in Outlook?

I use Outlook as my email client at work, but I don't want to use it to manage my tasks and todos. (Instead I use plain text files and Emacs org-mode.) Since many todo items start out as mails in my ...
2
votes
1answer
537 views

What is the preferred way to set environment variables at emacs initialization?

For instance, suppose I want to modify my PATH variable in my .emacs file. What is the best way to do this? Should I call setenv? Is there a variable I can customize? Should I call a shell script
1
vote
1answer
183 views

How to restore Option-letter in AquaEmacs to type Unicode letters?

I would like to use my regular Option + letter (i.e. ł = Option + L) to input such a letter to emacs (in latex mode). How to do it? Now it is overridden by jump to next word on the left. btw. when I ...
18
votes
2answers
10k views

Getting Gmail in Emacs?

I'm trying to learn Emacs, and I think that getting gmail right in it would be cool. I've tried a but of tutorials online, but I couldn't figure out what a lot of them were talking about. A lot of ...
3
votes
1answer
348 views

Multiple background colors in Emacs?

I'm trying to get my emacs color scheme set up like I have it in Textmate. Currently, variables, methods, and comments have a different background color than the main body. See the following link for ...