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

5
votes
3answers
6k 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
286 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 ...
5
votes
2answers
1k views

How do I get emacs to insert text into an arbitrary file?

I'm trying to create a function that inserts text into an arbitrary file without switching to that file's buffer. I know this could be done with echo, but is there a way to do it using only elisp?
5
votes
4answers
1k views

emacs starting maximised

I want a keyboard shortcut to open emacs in a maximised window. I tried emacs --fullscreen, but that is full screen rather than maximised window... That is, the emacs window covers ubuntu menu bars. ...
5
votes
1answer
584 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
730 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 ...
5
votes
1answer
699 views

Is it possible to sync Remember The Milk with emacs org-mode?

I have just started using Org-mode in emacs, and I am very impressed. However, I currently have all of my todo's in Remember the Milk The simplest solution would be to export RTM into an org-mode ...
5
votes
2answers
127 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 ...
5
votes
2answers
1k views

How can I show vertical indentations markers with emacs?

I'm looking for a emacs package or configuration that makes it possible to mark indentations with vertical lines, like in the following screenshot of Sublime Text:
5
votes
3answers
329 views

Are there any pagers that use emacs keybindings?

Both more and less seem to be heavily influenced by the vi commands. Are there any pagers that are more emacs like out of the box?
5
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 ...
5
votes
2answers
336 views

How can I make Emacs scroll horizontally more smoothly?

I already use scroll-conservatively to smooth the vertical scrolling behaviour of Emacs. The horizontal scrolling is still pretty bad. The screen jumps by many columns, and I often lose track of where ...
5
votes
1answer
1k views

How to make emacsclient uses differnt themes in terminal and X window?

Sometimes I use emacsclient -t -a '' in xterm, and sometimes I use emacsclient -c as a GUI application. What annoys me is that the font settings and color-theme are initialized when emacs server ...
5
votes
3answers
464 views

Emacs Dired: copying to the current folder

In Dired, copying is done like "copy the marked files to somewhere else". Is there a way to do this in the opposite direction? That is, in the scenario I imagine I would get a question what to copy ...
5
votes
2answers
759 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 ...
5
votes
1answer
614 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 ...
5
votes
2answers
1k views

Emacs CSS modes - most feature complete and maintained?

According to EmacsWiki there are bunch of CSS modes for Emacs, but none of them seems to be very actively developed or even that feature complete. Which one is the most feature complete so far and is ...
5
votes
1answer
307 views

Disable Ctrl-A shortcut in OSX / Firefox

OSX has Emacs keybindings on all text fields, that means Ctrl+A takes you to the start of line. In Firefox, sometimes, Ctrl+A activates the "Highlight All" option of the Find bar, instead of taking ...
5
votes
1answer
404 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, ...
5
votes
1answer
3k views

How can I select text in the Mac OS X Terminal without a mouse (for copy and paste, emacs)

I am using Mac OS X Snow Leopard 10.6.8 and emacs 23.3.1. In the Terminal I can mark text with the mouse, copy it with CMD-C and paste it with CMD-V. This is all I need and it works great, even within ...
5
votes
1answer
768 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 ...
5
votes
2answers
447 views

Edit any text input shown by a browser (mostly Chrome) with Emacs

Goal: to edit any text input (mostly text areas, but also single line inputs) shown by web browsers with an external editor, in my case, Emacs. Achieve a high level of comfort. Whenever I'm browsing ...
5
votes
1answer
444 views

Customizing how html is generated for source code blogs when using export in org-mode

I have been using org-mode to author blog posts about programming. For this, I have included inline code segments in my .org file like this: #+BEGIN_SRC csharp public class UserBuilder { private ...
5
votes
1answer
699 views

emacs AucTeX:Turn off auto-fill-mode inside a particular LaTeX environment

I like using auto-fill-mode for hard line wrapping. However, when I'm making a big tabular in a .tex file, I like using align-current to have the table look somewhat like it would when printed. The ...
5
votes
1answer
1k views

Disable Emacs' auto indentation for JavaScript mode completely

I have tried to disable the auto indentation in Emacs in JavaScript for three hours now and could not find a (good) solution. My Emacs version is 23.3.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3), at ...
5
votes
1answer
370 views

OSX Emacs FTP Failing

I use Emacs from Bash. I use C-x C-f to FTP into servers, to work on files. From my OSX (10.6.x), I can connect to all of my servers, but one. From Ubuntu, I can connect to all of my servers, period. ...
5
votes
2answers
272 views

Fixing c-fill-paragraph with comments in Emacs 23.2.1

I just upgraded to emacs 23.2.1 when I finally upgraded to ubuntu 10.10, but the first thing I noticed is that c-fill-paragraph (M-q) doesnt work nicely with comments anymore or at least do not work ...
5
votes
2answers
874 views

Emacs Evil search and replace function

Emacs has a Vim emulator mode called Evil. This mode has a search-replace function that does basically the same thing as highlighting a region and running sed on it. The brilliant thing about this ...
5
votes
3answers
940 views

How do I prevent emacs from loading `update_terminal_cwd` with autojump?

On MacOSX 10.7, Apple puts into /etc/bashrc a function: update_terminal_cwd that checks to see if Apple Terminal is running AND if we are not in emacs (snippet pasted below). Unfortunately, by ...
5
votes
2answers
414 views

Why can't I bind Ctrl-Shift-W in Emacs?

I'm trying to bind Ctrl+Shift+W to something in emacs under Ubuntu. Nothing happens when I press that key combination. When I call describe-key on that key combination, nothing happens. Is Ubuntu ...
5
votes
2answers
2k views

How to make emacs accept UTF-8 from the keyboard

My friends have persuaded me to "try again" (about the 5th time in about 12 years) with emacs. I'm currently suffering a little, and need help with emacs + utf-8. I'm running the 23.3.1 emacs gui on ...
5
votes
2answers
586 views

removing title bar of emacs in Windows XP

I'd like to remove the title bar of emacs in Windows XP. E.g., f11 in Internet Explorer or Firefox. I haven't run across any result in apropos that suggests this is possible in emacs itself. I've not ...
4
votes
3answers
7k views

In emacs how can I keep many files open at once?

At the moment I use C-xC-f to open a new file, but it gets quite tedious.
4
votes
1answer
3k views

How to easily break up a text file into pieces smaller than a threshold?

I have some text files that are 100 to 300 MB in length that I want to view in Emacs, but my Emacs gets into some performance issues opening and traversing such large files. Therefore, I'm looking ...
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 ...
4
votes
3answers
2k views

How to quickly navigate/jump between functions on emacs?

How to quickly navigate/jump between functions on emacs? I'm looking for a way to jump quickly to functions on emacs. I'm using the emacs search to do it,but it's too slow and fail. For example,I need ...
4
votes
4answers
882 views

Is there a Firefox add-on that enables emacs keyboard shortcuts?

For example, I'd love to be able to press ctrl-a to get to the beginning of a line in an input field and ctrl-k to delete that line, etc. P.S. Not sure if it matters, but I use Arch Linux.
4
votes
3answers
141 views

Is there a version of Emacs thats runs exactly the same on OSX, Windows and Linux?

I'm using Emacs on different environments and unsure of which version to use so that they all behave the same as I hear there are differences between XEamcs, Emacs, and some other versions. Which ...
4
votes
4answers
6k views

What is emacs? What makes it so popular? [closed]

What is EMACS ? I only know that it is some kind of text-editor, but what makes them it popular? How it different from the default text editor in windows which is notepad ? I read about it on ...
4
votes
5answers
10k 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
3answers
1k views

Is there a good hotkey cheatsheet for using Latex in Emacs?

Is there a good hotkey cheatsheet for using Latex in Emacs? A few minutes of googling didn't turn up anything.
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 ...
4
votes
1answer
989 views

Open Emacs with --debug-init on OS X

I am trying to debug why my .emacs does not load. Error message. Invalid read syntax: # ... Start Emacs with the `--debug-init' option to view a complete error backtrace. My question is: How do I ...
4
votes
3answers
207 views

Emacs: how to re-mark a previously marked region

When using Emacs, I commonly need to perform multiple operations on the same region (often quite large but not a well-defined object such as "entire section", "entire paragraph"). Currently, I have to ...
4
votes
1answer
1k views

Easy way to swap characters in command line with emacs key bindings?

If I'm in vi, and I see that I've transposed two characters, it is easily fixed by putting the cursor over the first and typing x followed by p in command mode. Is there a similar trick that works at ...
4
votes
2answers
428 views

Can I have a “singleton” emacs instance?

In other words, can I start emacs once, and whenever I type emacs whatever in terminal, have it open as a buffer in my existing emacs instance?
4
votes
1answer
1k views

Warnings/Errors with emacs cocoa (23.2) on OSX Terminal

I'm using emacs on OSX Terminal, just installed newer version 23.2, its located on /Applications/Emacs/Content/Emacs, it's an executable, so i linked it to /usr/bin/emacs, and moved the older one to ...
4
votes
3answers
822 views

In emacs dired, how can I run a command on multiple marked files?

I have several files marked in dired-mode, and I'd like to run a command on (say (delete-trailing-whitespace) on each of them. Is there a built-in way to do this, or do I need to write it myself? ...
4
votes
3answers
1k views

lightweight web browser with emacs-like keybindings

Uzbl uses hjkl for moving around, much like vim does. I was wondering if there was a browser (text based like links, or needing X like uzbl) which would be easy for someone used to emacs key bindings? ...
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 ...