The Emacs text editor, one of the main text editors used on Unix and derivative operating systems.

learn more… | top users | synonyms

7
votes
1answer
185 views

Emacs two windows for one file, seamless scrolling?

Is it possible to open one file in two windows, that are next to each other (C-x 3) and the first window shows lines x .. y and the next window has lines y .. z and when you scroll one window the ...
7
votes
5answers
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 ...
7
votes
1answer
698 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 ...
7
votes
2answers
3k views

Changing emacs bindings on Mac OS X for command to be meta

I'm using GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) of 2010-05-08 on black.local on OS X. I downloaded it from here: http://emacsformacosx.com/ My problem is that it doesn't ...
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?
7
votes
2answers
902 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.
7
votes
3answers
1k views

Cross platform, gmail compatible email client for Emacs

I spend alot of my time in Emacs, and move between Windows, Linux, and Mac OS at least once a day since these are the machines my company has available to use. I spend alot of time in gmail using ...
7
votes
2answers
2k views

Is there a way to control which window Emacs opens new buffers in?

I'm using sr-speedbar with emacs, and I often have the frame split into 2-3 different windows, and whenever I click on a file in sr-speedbar, it always opens the new buffer in the lowest window. I'm ...
7
votes
1answer
2k views

What difference will GTK3 support make for Emacs?

Emacs 24 is said to come with GTK3 support. What difference will this make (for the users)?
7
votes
2answers
1k 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 ...
7
votes
1answer
1k views

emacs ORG-mode “headless” export-as commands?

When I use org-export-as-latex or org-export-as-html orgmode turns my buffer into a .tex file or .html file. But I don't want all the extra junk that it adds to the file: I want to handle the ...
7
votes
1answer
319 views

Emacs: how to trigger scroll when cursor is n-lines from top/bottom of screen?

I'd like to trigger a scroll in emacs when my cursor gets within 4 lines from the top or bottom of the terminal. My .vimrc file contains this line: :set scrolloff=4 What do I add to .emacs to ...
7
votes
2answers
8k views

Emacs installer for Windows 8

As of the 1st of April 2013 (and no, this is not an April Fool prank) the Emacs Windows FAQ states that Emacs 23.3 is known to run on all versions of Windows from Windows 95 and Windows NT 4.0 ...
7
votes
2answers
1k views

Rebinding <s-mouse-1> to <mouse-2> in Emacs on OS X

I use a macbook pro and thus am subjected to a trackpad with one button. I can, of course, do mouse-1 by clicking and mouse-3 by clicking with two fingers, but there isn't much I can do about a middle ...
7
votes
4answers
1k views

How can I sync Emacs with Google Calendar and Contacts?

Is there a way to use Emacs to sync with Google Calendar and Google Contacts, ideally keeping a local copy so I can access them offline?
7
votes
1answer
1k views

how to visualize/graphically display org-mode files for brainstorming editing?

I use MindNode Pro OSX for brainstorming. I prefer it to Freemind for its ease of use and its prettiness, factors which help me think and be creative. I'm trying to switch to plain text in all my ...
7
votes
1answer
641 views

Is there a way to reload environment variables in emacs?

When emacs starts it inherits the environment variables that are set at the time, either in the launching application (Linux) or in a central repository (the Windows registry). On Windows, ...
7
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 (...
7
votes
1answer
319 views

“Back” command for org-mode

When I type C-c C-v to see the list of TODOs, or C-c / m to see headlines with a certain tag, org-mode shows me a sparse tree with the results. How do I then go back to seeing the tree the way it ...
6
votes
5answers
7k views

Emacs fails to load (.emacs) configuration file

I am using Emacs on Ubuntu 9.04. I have my emacs configuration file in the ~/.emacs.d directory. My emacs file is called .emacs. I have some basic configuration. However, when I start emacs, it ...
6
votes
2answers
11k views

How to comment a block of code in Emacs?

In Emacs, how to comment a block of text, i.e. how to indent a block of text rightward by n whitespace characters and put a chosen character sequence, say ##, at the beginning of each line? Original ...
6
votes
3answers
4k 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 ...
6
votes
1answer
851 views

Turn off prompt when saving file in emacs

How can I turn off the prompt when I try to save the file in Emacs? I mean every time I do C-xs, emacs always ask "Save file xxx?" How can I disable this prompt?
6
votes
1answer
4k 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?
6
votes
6answers
2k 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
3k views

Upgrade org-mode with Aquamacs

As is asked and answered in here, Aquamacs has the org-mode that is pretty old, and there are some problems with capturing. How can I upgrade the org-mode with Aquamacs? Is it OK just copy lisp/*.el ...
6
votes
7answers
222 views

Open a Console Based Editor with limited access

I have a script that will be executed through SSH. My SSH server is configured to always trigger this script, so the user doesnt have access to actual machine. One of the features of this script is ...
6
votes
2answers
2k 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?
6
votes
4answers
1k views

how to get a decent emacs setup on linux

I am currently interested in switching from vim to emacs. One of the more compelling reasons for this is the smooth integration with a unix environment. The most experienced emacs users I have seen ...
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
925 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
3answers
2k views

In emacs, my <C-right> and <C-left> on my mac keyboard, does not work

I have an iMac running OSX 10.8.4. I've tried this on emacs built from Homebrew, as well as a version I've downloaded from http://emacsformacosx.com/ I've tried this with a completely clean ~/.emacs....
6
votes
3answers
294 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
5answers
2k 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 self-...
6
votes
2answers
1k views

Permanently override background colour of Emacs theme

I want to use the Emacs theme billw, except with a different background colour. I have the following in my .emacs file: (require 'color-theme) (color-theme-initialize) (color-theme-billw) (set-...
6
votes
1answer
344 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 ...
6
votes
4answers
13k 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
4k 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)?
6
votes
2answers
295 views

Incremental search for un/accented characters

Does emacs have an incremental search mode, where searching for a character will search for itself and for any other versions of the character with accent marks, similar to how Google Chrome (at least ...
6
votes
2answers
900 views

Combining two operators in Evil-mode Emacs

In vim I've remapped > and < when in visual mode to >gv and <gv respectively, like so: vnoremap > >gv vnoremap < <gv Since my target for this question are folks experienced ...
6
votes
1answer
2k views

How do you copy files from a remote server to a local folder in emacs using dired/tramp?

When I use tramp to open a remote directory (say C-x C-f /ssh:user@example:/somedirectory), it opens up a dired buffer for that remote directory. The problem is that I want to copy directories and or ...
6
votes
1answer
1k views

How do you use more than 9 regex capture groups in emacs?

I'm trying to transform a rather long sequence of values to a different format, using emacs' replace-regex command. There are more than 9 values to extract, so the \1 - \9 back references are not ...
6
votes
1answer
1k views

Why was iswitchb removed from GNU Emacs 24?

I have used IswitchB for a number of years, but in version 24 of Emacs, it has been removed. My muscle memory is finding the transition to Icomplete or Ido difficult. I know that it's possible, at ...
6
votes
1answer
2k views

Emacs: ido vs anything. Are they fighting each other?

I have been using ido-mode for months without issue. I just recently decided to try anything. It has many features similar to ido-mode. However, anything now seems to be picking a fight with ido-...
6
votes
4answers
3k 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
2answers
676 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
726 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
1answer
844 views

Underline instead of italic in org mode

I just switched from windows to ubuntu. Somehow it has changed the behavior of Org mode so that now test enclosed between / are underlined (similarly as text enclosed between _) while it was ...
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
3answers
3k views

Word 2007 files on emacs?

Is there a word-2007 mode for emacs?