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

6
votes
2answers
1k views

Mac OS X, Emacs and Windows keyboard - remapping a key

I have a Windows keyboard (MS natural 4K), I'm using Mac OS X, and I like to use Emacs. However, the default Mac OS X GUI build for Emacs has the Windows key mapped to Meta (meta typically is the Alt ...
6
votes
1answer
1k views

Tell emacs what mode to use in file header

Is there a built in way in emacs to to suggest what mode it should use? I have lots of properties files that doesn't have a file endings to guide emacs. Ideally I'd like to be able to put somthing ...
6
votes
6answers
1k views

Emacs + git: auto commit every 5 minutes

How can I set up emacs to automatically git commit every time I save an open file or periodically?
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 ...
6
votes
3answers
327 views

How to search/replace string for the whole buffer in Emacs without going back to the beginning?

It is really inconvenient to first go back to the buffer top and then do the search/query. Well, for search, it is relatively simple that you can just press C-s one more time to wrap around, but for ...
6
votes
1answer
548 views

In emacs, how do I align closing parentheses with the start of the opening line?

The default indentation style for multi-line function calls in many emacs modes is to align the closing round bracket with the other arguments to the function, thus: function_one( arg1, arg2 ...
6
votes
1answer
3k views

How to find out current font used in my Emacs?

How to find out current font used in my Emacs? I'm using GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) of 2010-05-08 on black.local `
6
votes
3answers
2k views

Emacs 24: Loading a package installed via ELPA

I have just installed the cmake-mode package in Emacs 24 using: M-x package-install cmake-mode I can see the package at: ~/.emacs.d/elpa/cmake-mode-20110824, and I can load it using the instruction ...
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 ...
6
votes
2answers
316 views

Getting rid of GNU Emacs's menu bar in terminal windows

How to get rid of Emacs's menu bar in terminal windows? The standard answer is to put (when (not (display-graphic-p)) (menu-bar-mode -1)) in init.el. However, this solution is not good, because ...
6
votes
2answers
367 views

Is it possible to control the whole Gnome desktop with vi-like commands?

I know with readline you can use emacs or vi commands to edit the input of several interactive text programs. I wonder if there exists such a similar facility to control the whole desktop in Gnome or ...
6
votes
2answers
2k views

How can I get emacs under windows to autocomplete paths in shell buffers using “\” instead of “/”?

I'm using emacs to work on linux, windows, osx and everything is fine except one annoying problem with shell buffers under windows. Autocompleting filenames would work great (better than standard ...
6
votes
4answers
2k views

In Emacs how can I search a directory and all subdirectories for a filename?

In Emacs how can I search a directory and all subdirectories for a filename?
6
votes
1answer
2k views

Delete data from the middle of a binary file with hexl-mode

I have a fairly large binary file (a few tens of MB) and would like to remove a few KB somewhere in the middle, it's sandwiched data not the beginning nor the end. Ideally I'd like to use emacs and ...
6
votes
3answers
2k views

Word 2007 files on emacs?

Is there a word-2007 mode for emacs?
6
votes
1answer
534 views

how to remove smart quotes in copy/paste?

I'm copying text from either Google Chrome or PDFs, and pasting into Emacs. The original text has smart quotes. I don't want smart quotes in the output. Is there a way, either on the Copying side ...
6
votes
1answer
505 views

Reading email from Emacs VM using a secure server (Gmail)

This is a question (see below) originally entered at https://answers.launchpad.net/vm/+question/108267 and upon the recommendation of Uday Reddy the question and answers are being moved here. The ...
6
votes
2answers
679 views

Disable Arrow Keys In emacs

I want avoid using arrow keys for navigation within emacs however due to being an habit its difficult to switch to native key bindings of emacs for navigation. I would rather like to disable arrow ...
6
votes
1answer
413 views

How to display new line character (^J) in emacs replace query

Say I want to replace all the new lines in my emacs buffer with the character k (wait for the -1, read the rest! :) ). I know I can type M-x replace-string RET C-q C-j RET k. It works fine. My ...
6
votes
3answers
2k views

setting monospaced font on Emacs?

I used to use liberation mono font on emacs (on X11) on an Ubuntu system using the following command and it worked great: (custom-set-faces '(default ((t (:inherit nil :stipple nil :background ...
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 ...
6
votes
1answer
305 views

How to export html from emacs org-mode that can be opened in Microsoft Word

I created an HTML file using Emacs (org-mode export), which I want to open in Microsoft Word. However, Word says it cannot open the file. In the details of the error message, it says: Reference ...
6
votes
1answer
1k views

How do I install the info files for org-mode version 7.5 on Windows XP?

I am attempting to install org-mode 7.5 on a Windows XP machine but M-x org-info brings up the documentation for Org version 6.33x that shipped with Emacs 23.3.1 I downloaded the zip file and ...
6
votes
1answer
1k views

How can I get Putty to support 256 colors in Emacs on CentOS?

As far as I can tell from browsing around, I should be getting 256 colors in my Emacs, but I'm not. I'm running CentOS 5.4 on an ec2 instance. I'm running Putty 0.60 on Windows 7. Putty is set to ...
6
votes
0answers
79 views

Hang on jabber-connect in emacs

I use jabber.el to connect to my work chat server from within emacs. This was working until recently, but now when I run jabber-connect it hangs after prompting for my JID. Emacs locks up until I ...
6
votes
0answers
506 views

Awesome-wm a signal to rise client when focus received

I've got my Emacs running on a tag worker with server-start launched. I have a file manager opened somewhere else (another monitor for example) and when I open a text file with emacsclient it ...
5
votes
5answers
5k views

emacs not load (.emacs) configuration file

I am using emacs on ubuntu 9.04. I have my emacs configuration file in ~/.emacs.d directory. My emacs file is called .emacs I have some basic configuration. However, everytime I start emacs it ...
5
votes
4answers
76 views

How to identify the emacs keybinding for something in the GUI?

I started using mu4e for email in emacs recently, and while I was successfully able to configure my email and get comfortable with the general navigations for keys, I can't seem to find the good old ...
5
votes
4answers
1k views

Why does Emacs insert ^m at the end of every line

Why does Emacs insert ^m at the end of every line in my Linux environment?
5
votes
3answers
2k views

Where is the .emacs file located on Windows?

I have installed EmacsW32. I need to edit my .emacs file. Where is the .emacs file located on Windows?
5
votes
2answers
402 views

How do I find out which version of org-mode I am using?

How do I find out which version of org-mode I am using? My current init.el is giving me errors relating to org-babel-do-load-languages and I've seen reference to a different variable ...
5
votes
4answers
1k views

Good Emacs tutorial? [closed]

After hearing great things about modal text editors, I decided to give Emacs a go (Windows version). Having no experience with this kind of application, I found it extremely difficult to do anything, ...
5
votes
2answers
785 views

How do I exit from Emacs to Cygwin?

I start Cygwin and type emacs and there I am in Emacs. The directions say: to exit type C-x C-c where C is the control key -- I am assuming that is the left control key. So I hold down the left ...
5
votes
3answers
3k views

How can I change the background colour of a single emacs buffer?

I want to make SQL interactive buffers that are connected to production DBs very, very obvious, so my thought was to change the background of the buffer to a dark red colour. set-background-color ...
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 ...
5
votes
2answers
2k views

Is there emacs plugins to do Sublime-like completion and goto anything?

In Sublime Text 2, I can enter prnfunc[tab] and then it completes to 'PrintFunction'. If I have a project, I can press Cmd+P and enter srcpy/hello.py and then it navigates to ...
5
votes
1answer
252 views

How does emacs open a file at the same line as the last time it was opened?

On my system, if I open a file with emacs, scroll down the file and close it, the next time I open the file, emacs will automagically scroll down to the same position. How does this work? Is emacs ...
5
votes
4answers
450 views

Unicode in an Emacs regular expression

I'm using emacs 24. How can I replace all occurrences of the non-printable Unicode bidi character RTL, whose hexadecimal number is 202e? I want to replace it with the non-printable Unicode bidi ...
5
votes
3answers
1k views

strange characters in emacs shell buffer

My emacs lists strange escape characters in shell buffers: me@ubuntu:~//configuration.template/hooks$ me@ubuntu:~//configuration.template/hooks$ ls [0m[01;32mpost-commit[0m [01;32mpost-commit~[0m ...
5
votes
2answers
6k views

How to use emacs color-theme on Windows, and help with the .emacs/.emacs.d?

Help would be hugely appreciated :) Here is what I have done: Downloaded the latest release of GNU Emacs and installed it on Windows 7 Completed the tutorial Set my home path as C:\Users\User, so I ...
5
votes
2answers
468 views

How can I differentiate between the different Emacs packages on Ubuntu?

What is the difference between each of the following. emacs22 emacs22-nox emacs-snapshot emacs-snapshot-nox emacs21 emacs21-nox emacs22-gtk
5
votes
1answer
270 views

How to configure dired to update instantly when files/folders change?

Sometimes I launch dired, then rename a file, or add a new file, and dired doesn't see the changes until I relaunch Emacs. Is there a way to configure dired to refresh itself more quickly, either ...
5
votes
2answers
361 views

Is there a way to print the definition of an existing function in Emacs?

I want to see the definition of an existing function in Emacs. Is this possible? I've tried C-h d function-name RET, but it only returns the documentation string for the function, not the actual ...
5
votes
2answers
4k views

Grep exits abnormally with code 123 when running rgrep on emacs

Greetings fellow Emacsers I'm running GNU Emacs 23.1.1 on "Ubuntu 10.04.1 LTS" and any search I perform using the built-in M-x rgrep on the standard Linux kernel source code (vanilla) ends ...
5
votes
5answers
1k views

emacs 24.3 on Windows 7 does not close properly

I'm running Emacs 24.3 on a Windows 7 machine. No matter how I close the editor, whether Ctrl+X, Ctrl+C, or the menu, Emacs always crashes and I get the error “GNU Emacs: The extensible ...
5
votes
2answers
586 views

How to untar in Emacs dired?

Is there a simple way to untar files in Emacs Dired? Currently I'm doing a M-! tar -xvf <filename>, however I feel like there is be an easier way.
5
votes
2answers
367 views

How can one-handed work in Emacs be eased?

My right hand is temporarily immobilized and I would like to do some minor work in Emacs, mostly in Org-mode, but also in AUCTeX. Are there ways to ease one-handed work in Emacs, such as some mode or ...
5
votes
2answers
1k views

How to type a Unicode character by its number in Emacs?

How to type a Unicode character by its number, e.g. 0x2E3B for Unicode character U+2E3B (THREE-EM DASH) in Emacs?
5
votes
3answers
5k views

How to prevent the “Symbol's function definition is void: error” when running emacs in the console?

To disable the scrollbar in emacs I added (toggle-scroll-bar -1) to the my .emacs file and it works great when I run emacs outside of console mode. However when I run emacs in the terminal I get the ...
5
votes
1answer
274 views

Emacs on Ubuntu: Function documentation lacks link to source code

I use Emacs on Ubuntu at work. One persistent annoyance has been that function documentation does not include a link to the function's source code. For example, on my Ubuntu system the documentation ...