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

4
votes
2answers
772 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 ...
16
votes
3answers
6k 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 ...
10
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 ...
6
votes
4answers
11k 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 ...
2
votes
1answer
494 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 ...
10
votes
8answers
19k 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
1answer
646 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
2answers
112 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
883 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
877 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 ...
24
votes
6answers
22k 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 ...
30
votes
12answers
23k 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 ...
18
votes
2answers
9k 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 ...
7
votes
7answers
3k 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/
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 ...
23
votes
2answers
2k 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
2k 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
1answer
1k 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 ...
3
votes
5answers
17k 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 ...
5
votes
1answer
475 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 ...
3
votes
1answer
759 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 ...
1
vote
2answers
2k 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 ...
12
votes
4answers
4k 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 ...
9
votes
1answer
2k 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 ...
8
votes
6answers
2k 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 *"...
6
votes
1answer
473 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 ...
5
votes
3answers
1k 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 ...
4
votes
2answers
254 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
4answers
946 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 ...
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 ...
3
votes
1answer
503 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 ...
3
votes
2answers
434 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
5k views

where is the .emacs files in Snow Leopard?

where is the .emacs file in Snow Leopard? I need it to configure Emacs.
2
votes
2answers
584 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
681 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 ...
2
votes
1answer
262 views

Trouble understanding endianess

Let's say I open a tiff file in emacs and see the following in hexl-mode: 0x08000400 and I know the file is little endian. Does that mean the number is actually 262152 in decimal, or 0x00040008 ...
1
vote
2answers
433 views

how to set a global org publish export setting in emacs

As a follow up to this question: superuser question 431356 How can I specify org mode publish setting globally? So not per project, but for any .org file I happen to publish? so instead of: (setq ...
1
vote
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 ...
1
vote
2answers
431 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 ...
6
votes
1answer
769 views

How do I sort or move DONE items in org-mode?

I'm kind of new to org-mode in Emacs, and I'm investigating if it is suitable to replace Google Tasks for me. Google Tasks offers a "clear completed tasks" action, that removes all tasks that are ...
5
votes
4answers
65 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 ...
4
votes
2answers
956 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 ...
4
votes
2answers
196 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 ...
3
votes
2answers
102 views

Why does my Emacs shell render this gunk?

In my emacs shell, I see this output: ^[[J~% echo $PS1 echo $PS1 %2c%% On my other machine, this stuff doesn't show up at all. Can anyone suggest a reason why and how to fix it?
3
votes
3answers
998 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 ...
2
votes
1answer
192 views

How to save shell history from emacs and use it in terminal?

I use emacs for almost everything, but when I run shell M-x shell and then exit from emacs, the history is not saved, I've tried (savehist-mode 1) for this purpose but it doesn't seem to work, is ...
2
votes
2answers
160 views

Emacs: how to reassign C-x 5 2 (switch frame) to C-` in the .emacs profile

To make emacs more osx-esque, I'd ike to reassign C-x 5 2 (switch frames) to C-` (I have command mapped to C-). What should I add to my .emacs profile to do this? EDIT Sorry - meant C-x 5 o (switch ...
2
votes
3answers
1k 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
3answers
682 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.