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

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
2k 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 ...
5
votes
3answers
2k 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
478 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
3answers
559 views

Emacs - Disable Some Minibuffer Messages

In Emacs, there are some cases where I would like to prevent messages from appearing in the minibuffer, mainly pertaining to "Beginning/End of buffer" and "Text is read-only". Is there any way I can ...
5
votes
1answer
412 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
513 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
5k 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
403 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 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
3answers
5k views

How do I add color syntax highlighting to GNU emacs?

I have two versions of emacs available to me on a locked workstation: $ /usr/local/bin/emacs --version GNU Emacs 22.3.1 $ /usr/bin/emacs --version GNU Emacs 21.4.1 In both cases, my terminal type ...
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
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
1k 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 ...
5
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) ...
5
votes
2answers
788 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
712 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
140 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
3answers
382 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
3answers
3k views

How do I set up Emacs on Linux to read/send mail from Gmail?

I generally like Gmail, but there's something about well formatted, color highlighted plain text over a black background that appeals to me a lot. I'd like to be able to use Emacs to read/send email ...
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
430 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
2answers
946 views

Advanced time tracking in Org-Mode

Are there any advanced time tracking mechanisms in Org-Mode available? I "clock in" and "clock out" my tasks but am wondering wether there is an advanced report (besides the clock table) available ...
5
votes
3answers
506 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
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 ...
5
votes
1answer
475 views

isearch-forward-regexp key binding using Ctrl+Alt+s

The key binding for isearch-forward-regexp is C-M-s, however I cannot invoke that bindings somehow using Ctrl+Alt+s. I can do Esc then C-s to invoke it though. Other commands with the C-M prefix ...
5
votes
2answers
397 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 ...
5
votes
1answer
333 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
473 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
4k 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
847 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
498 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
484 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
749 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
2k 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
382 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
285 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
3answers
1k 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
1k 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
456 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
1answer
735 views

Enabling Italics, Underline on Emacs, Xterm and Putty

I'm using a Ubuntu (11.04 Server Edition) virtual machine as my development environment. It doesn't have a desktop environment since I don't think its necessary and I want to keep it lightweight. I'm ...
5
votes
2answers
612 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
8k 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
4k 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
1k 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.