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

learn more… | top users | synonyms

4
votes
2answers
1k views

How can I disable smart indentation in emacs (and force either spaces or tabs)?

I want to make emacs insert either 4 spaces or a tab when I press the tab key. Nothing else. I don't want smart indentation, I don't want it to auto-align itself or try to do anything smart. I just ...
20
votes
3answers
7k views

How can I run Mac OSX graphical Emacs in daemon mode?

Short form: I want to run the Mac OSX version of Emacs found on http://emacsformacosx.com/ as a daemon, with graphical and text clients connecting to it as-needed. In detail, here is the workflow I ...
11
votes
3answers
2k views

I'm an Emacs user. How do I learn Vim?

Most of the time, I use Emacs. However, I've decided to try to learn Vim. I'm happy with Emacs, I just am trying to avoid having it turn into Maslow's Hammer. I've seen a few tutorials, but I have ...
20
votes
7answers
5k views

How to make Emacs read buffer from stdin on start?

With Vim I can easily do $ echo 123 | vim - Is it possible to do with Emacs? $ echo 123 | emacs23 ... Emacs starts with a Welcome message $ echo 123 | emacs23 - ... Emacs starts with an empty ...
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 ...
3
votes
1answer
759 views

how can I make emacs use other css for orgmode publish

When using orgmode in Emacs, when I publish to HTML it uses a default CSS which doesn't look very nice. After publishing, I manually jank out the old CSS for a custom one. Is there a way in Emacs to ...
12
votes
8answers
29k 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 ?
2
votes
2answers
720 views

emacs variable to “open with” in original frame

i have long used emacs, and have even long used emacs.app . recently, i upgraded to 23.3, and i discovered that a couple of default behaviors changed. one in particular that annoys me now is that ...
2
votes
1answer
777 views

Emacs doesn't load gui

whenever I run emacs or emacs23 on terminal I just get the following output: ** (emacs:2620): CRITICAL **: menu_proxy_module_load: assertion `dbusproxy != NULL' failed And the gui doesn't load, ...
1
vote
1answer
218 views

Auctex View works or does not depending on how I launched Emacs

I try to open a PDF in Skim from Emacs (via Auctex's View command) on MacOSX Mavericks 10.9.2. When I open Emacs.app by double-clicking or through Spotlight, it fails. Nothing happens. There's no ...
1
vote
2answers
1k views

How to define template for org-mode HTML export?

I am using org-mode to generate html pages from my notes. I used Publishing Org-mode files to HTML to setup blog system. I have defined an export template. But to use it I have to add following line ...
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 ...
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 ...
37
votes
8answers
33k 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 ...
32
votes
12answers
28k views

Which version of Emacs makes the best use of the Mac GUI? [closed]

On Windows and Ubuntu I use GNU Emacs, but FSF doesn't provide binaries for the Mac I have a decent version that came with Snow Leopard, but just running in the bash terminal. Is there a version ...
19
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 ...
8
votes
1answer
4k views

How to switch back text encoding to UTF-8 with emacs?

Suddenly some of my text files, I'm editing with Emacs had changed and special characters were shown in a strange way, e. g. \344 instead of ä \374 instead of ü ... and so on. In another file I now ...
11
votes
4answers
8k views

How do I fix my prompt in emacs shell-mode?

I'm doing some programming on a colleague's machine. He has a version of emacs (23.1.1) I haven't used before. My problem is that when I go to shell-mode, my bash prompt looks like this: ...
7
votes
7answers
4k views

Fullscreen Emacs in OSX

Is there any way of using Emacs in fullscreen mode in OSX. I'm currently using Emacs from http://emacsforosx.com/
10
votes
1answer
312 views

Is there a way of using ctrl-r after typing part of command in bash?

In bash the Ctrl+r command is very useful, I type Ctrl+r whatever and it searchs my history for commands containing the word whatever. But if I type whatever and realize that I would like search that ...
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 ...
3
votes
5answers
20k views

How to install Emacs (Text editor) on ubuntu Linux

I have tried to install emacs from source that I downloaded from the internet. For that first I have chosen a path like: /home/anand/emac/emac-23.1 (where emac-23.1 is the extracted file) Then I ...
29
votes
2answers
4k views

Jump to first non-whitespace character in line in emacs

I'm looking for the emacs equivalent of vi's ^. How can I move my cursor to the first non-whitespace character in a line?
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 ...
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 ...
7
votes
1answer
2k views

Emacs font settings not working in new frame

I'm trying to get comfortable with emacs. I installed emacs starter kit. Now I'm trying to customize fonts. In ~/.emacs.d/init.el I did (set-frame-font ...
5
votes
1answer
597 views

Emacs fullscreen on Mountain Lion without Toolbar

The newest version (24.3) of Emacs.app includes support for Mountain Lion's fullscreen. However, even after disabling the toolbar (tool-bar-mode 0), the space for the toolbar is not used by Emacs, it ...
5
votes
2answers
890 views

Customizing org-mode export template?

Related to this question: How to define template for org-mode HTML export? I'd like to customize the template inserted by hitting C-c C-e t such that I get a few customizations and even some help ...
4
votes
1answer
1k views

Why is Emacs Predictive Mode not working for LaTeX documents?

I have Emacs installed on a Windows 7 machine along with AUCTeX for creating and editing LaTeX documents. I recently installed Predictive Mode to enable auto-completion of LaTeX macro commands. ...
4
votes
5answers
11k 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 ...
4
votes
4answers
1k views

Features of Emacs that are complementary to Vim?

I've been using Vim extensively for a while now, and I really enjoy working with it. However, I keep reading praises for Emacs. I've decided to take a look at Emacs to round out my knowledge of the ...
1
vote
2answers
4k views

How to: Emacs and FTP?

Can someone advise me as to how to get FTP working in emacs? It doesn't have to be SFTP, etc, just plain old FTP. I've tried multiple times, and never could get it working. I think the closest I got ...
11
votes
1answer
4k views

Emacs opens files in a new frame when opened with “open -a”

I want to be able to invoke Emacs from the command-line, and either start graphical Emacs if it isn't running or visit a file in an already running Emacs. I tried to do this with emacsclient which I ...
10
votes
9answers
4k 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 *"...
8
votes
4answers
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 ...
8
votes
1answer
678 views

How to exclude {{{ … }}} in flyspell-mode and flyspell-buffer?

I edit a lot of MoinMoinWiki pages in my emacs and love the flyspell-mode. Preformatted stuff in {{{...}}} (in multiple lines) as well as "backtick text backtick" usually contains snippets of ...
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 ...
5
votes
2answers
396 views

Emacs unicode characters take up more vertical space

When I have the arrow (⇒) it takes up more vertical space in Emacs. So lines with this symbol have a different line height then the rest of my code. This really annoys me :). I have the following ...
4
votes
2answers
317 views

Passing through certain M-<key> command to OS in Emacs

Is there a way to pass a certain M-key combination to the OS? I'm using OSX and I'd like to have the "Move focus to next window in application" key which I use to work also in Emacs, currently it just ...
4
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.
4
votes
4answers
999 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 ...
3
votes
2answers
583 views

How to define a shortcut (key combination) to insert “<tag></tag>” in Emacs?

I want to define a shortcut to enter XML tag pairs. Pressing key combination key1-key2 which should prompt for entering a tag name, .e.g. "foo", and automatically insert "<foo></foo>". ...
3
votes
3answers
994 views

Tutorial for those who know Vim but want to learn Emacs as well

I would like to find a resource listing all the Emacs equivalents (for performing various common tasks or using features in common to both editors) for the Vim commands/features that I know well.
3
votes
3answers
1k views

I have started using emacs with -nw option - ctrl-home and ctrl-end don't work

In order to speed up my emacs work flow, I am trying out emacs -nw versus running in X-Windows mode. Ctrl-HOME and Ctrl-END are not working at all, and have tried editing .keymap files and following ...
3
votes
5answers
2k views

Aquamacs overrides my custom-set-faces options

I've just installed Aquamacs on my Mac. I have a .emacs file in my home, which contains all my customizations. Among these, I have: (custom-set-faces '(default ((t (:stipple nil :background "black" ...
3
votes
1answer
911 views

Running Cygwin Inferior Shell in Emacs

I am running Cygwin as an Inferior Shell in Emacs. Here's the basic step I am following: C-u M-x shell (rename the buffer to cygwin) cd \cygwin cygwin.bat Here's what I see: C:\cygwin>cygwin ...
2
votes
1answer
2k views

Solarized background colour off in emacs under tmux

Exhibit I: plain Emacs. Exhibit II: Emacs under tmux. The shades of colours are different, and importantly, the background colour differentiation is nil (e.g. look at the top menu). Anyone run ...
2
votes
3answers
2k views

How to restore Emacs' windows and buffers from the last session?

How to restore Emacs' windows and buffers from the last session? The behavior I want is like in web browser that you can restore all the tabs from last session.
2
votes
2answers
653 views

Emacs window management

I want to achieve the following when a buffer is displayed in GNU Emacs: it should never split my windows; if the buffer is already opened in a window it should reuse it, otherwise it should use the ...
2
votes
1answer
700 views

Using emacs to control command-line processes

I have a large amount of command-line utilities that I use in day-to-day development (eg Maven, ant, Grizzly, mplayer, CASE tools, etc). I use Windows. Every time I want to kick off a new process, I ...