A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor."

learn more… | top users | synonyms

3
votes
2answers
194 views

How to bind “ß” to Meta-s?

I am using Carbon-Emacs on MacOS X 10.6 with the US-International keyboard layout. Usually, I can use Alt+s to print the letter "ß". However, Emacs interprets this as Meta+s and complains that there ...
11
votes
2answers
1k views

Italics in Emacs on a text terminal (rxvt-unicode)

I am using Emacs running in an urxvt, and I cannot get italics to work in Emacs although the terminal supports it. Here’s my current setup: I haven’t set $TERM, so it is the default ...
4
votes
1answer
187 views

In emacs, how can I pass an argument to a function in a keybinding defintion

I want to create a keybinding for funcion end-of-line+ and pass a value of -1 to i. The function is declared as: (end-of-line+ &optional n) The first of the following snippets below, works ...
8
votes
1answer
361 views

emacs: recognising the shebang line

How can I configure Emacs to recognise certain she-bang lines? it recognises the shebang line: #!/usr/bin/env ruby but not the shebang line of #!/usr/bin/env ruby1.9 I figure there must be an ...
3
votes
3answers
732 views

emacs can't open display

Just recently this has started happening; I run: /usr/bin/emacsclient --alternate-editor="" --no-wait -c and get: ERROR: Display :0.0 can't be opened No other applications do this. The output ...
1
vote
3answers
277 views

vim/emacs plugin to view recursive grep search search results?

Suppose I have a file formatted like this: file1:123 file2:4444 some/other/file:2233 This represents the search results from a grep (i.e. file:line-number). I'd like to have a vim plugin which ...
5
votes
3answers
826 views

How to install/default to the command line version of Emacs?

I installed Emacs using sudo apt-get install emacs. The problem is that when I launch Emacs from the command line (e.g. emacs main.c) it opens Emacs with a GUI. I prefer the command line version which ...
9
votes
4answers
352 views

Good GNU/Emacs tutorial

I'd like to learn emacs in depth. The problem is that they divide in 2 categories: Basics (That C-x C-s saves files and C-x C-c exists emacs etc.) Everything I'm currently use 1%-10% of emacs ...
3
votes
4answers
400 views

How to set up tea-time in emacs to use native notification system in gnome

Is there an easy way of having tea-time display messages via gnome's native notification system? The current "notification function" in tea-time.el is: (defun show-notification (notification) ...
13
votes
2answers
1k views

GNU Emacs; Does the GUI version offer anything more than the ability to have a GUI menu?

I've been looking at GNU Emacs for a few months now, on and off (mainly off), and I've really only gone as far as testing a few basic things which I especially want in an editor... I'm slowly getting ...
3
votes
2answers
646 views

Working with screen and emacs

I'm working with emacs (on the terminal) and I use screen to switch between terminals. The key combination Ctrl+A is grabbed by screen. Is there a way to change screen key binding?
4
votes
2answers
637 views

Emacs font size changes frame size?

I'm using emacs 23.1.1. I set the font size in my .emacs with (set-face-attribute 'default nil :height 100) The problem is that my emacs is now really small. The outer box (what I call a window and ...
6
votes
1answer
448 views

emacsclient -t hangs

I'm trying to use emacs (23.2.1) in daemon mode. I started it as emacs --daemon and that works just fine. But whenever I try emacsclient -t somefile I first get a line of garbage (e.g., `1;25C2;'), ...
7
votes
3answers
2k views

how to ssh to remote server and use local emacs to edit files?

Is there a way to use the emacs installed my local computer to access remote files I have in a remote server? I have googled and found out that I should use TrampMode however it is necessary for me to ...
4
votes
3answers
210 views

Open files in emacs by filename instead of complete path

Assume I have a bunch of directories and can guarantee that no two directories have a common filename (i.e. if foo/bar exists, then bar doesn't exist in any of the other directories). How can I setup ...
5
votes
1answer
540 views

why does my emacs whitespace mode add “” to my buffer?

I'm using Putty to ssh into a RedHat box, and I'm running GNU emacs inside the putty ssh window. When I turn on whitespace-mode using M-x whitespace mode, I notice I see a "Â" before each space or ...
2
votes
1answer
168 views

What is .emacs? How do I edit it?

In this article, I don't understand step 7: 7. Add (load-library “init_python”) in your .emacs How can I do this?
5
votes
3answers
764 views

org mode to dokuwiki converter

Is there an emacs org-mode to dokuwiki converter? Is there an dokuwiki to emacs org-mode converter?
2
votes
3answers
289 views

Is there a convenient general way to “grab” the echoed result of a command in Emacs (of M-: or M-!)?

Sometimes, I want to insert the result of an Emacs command (that has been echoed in the echo area) to another buffer or another running X program. So, I'd like to put it to the kill-ring. What would ...
3
votes
2answers
344 views

Is there a user interface in Emacs allowing one to “grab” the buffer's filename conveniently?

It happens quite often that I want to use the path of the file opened in a certain buffer in Emacs (either the full path or the basename) in another place (a buffer or a different X program, say, a ...
3
votes
2answers
819 views

Script for opening a file in an already existing emacs process

I keep emacs open all the time I'm working. I have several script that will launch all the apps and files related to a specific project. But, it will launch emacs again, rather than simply cause the ...
5
votes
2answers
636 views

emacs does not see my fonts in gentoo

I copied my ~/.emacs file from ubuntu linux; I've installed Consolas font (and it works in gnome terminal, and as a default Monospace font); but Emacs does not see it (custom-set-faces '(default ((t ...
14
votes
1answer
660 views

Keymapping problem when working with Emacs and Openbox

I have an Apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the Space bar for when working with Emacs. The below script worked fine when I ...
4
votes
1answer
516 views

Emacs text-scale-adjust causes line numbers column to incrementally shrink and disappear

I've set up emacs to display line numbers (global-linum-mode 1), and it works until I start enlarging the text via text-scale-adjust The line numbers column starts to shrink, and disappears ...
4
votes
1answer
351 views

In Gnu Emacs how do I set up a global key to toggle the menu-bar?

Using Gnu Emacs 23.1.1 on Ubuntu 10.04... I'm currently a total newb with emacs, and I've decided to go cold turkey with the Gnome menu bar. (but I do want it to be "available" for the teething ...
5
votes
1answer
652 views

Text editor with font-size selection for specific human languages (ie. Unicode Block) eg Devanagari

Pre Linux, I used Windows.. (too many years in the wilderness :) ... however there was a ray of sunshine in amongst all the general virus/re-install flack.. and that was Notepad++, a text Editor I ...
6
votes
4answers
3k views

Emacs command to cut OR copy to system clipboard?

As a very new Emacs user, I've been using Ctrl+w and Ctrl+y to cut/copy and paste between buffers in Emacs. Is there a way to do the same thing so that not just Emacs, but the entire system, can have ...
11
votes
5answers
1k views

What are some excellent Emacs utter beginner resources?

I administrate a couple of servers and do automation with both python and ruby at times. I've seen some awesome Youtube videos of users with multiple open windows, logged in background chats, and ...
5
votes
1answer
393 views

As we call `#!/bin/perl` 'shebang', what we call `-*- perl -*-`?

The first line of a script may be in format of #! interpreter, so the shell will execute the script using the specific interpreter. This is so called shebang or shbang. Similarly, there can be some ...
3
votes
1answer
682 views

Emacs cperl mode - how to use tabs for indentation instead of spaces

Is there a way to make cperl mode in emacs use all tabs for indentation instead of spaces? I've tried setting indent-tabs-mode, and cperl-tab-always-indent. Here is my .emacs file: (defalias ...
8
votes
1answer
179 views

Is it possible to name windows in emacs

I would like to be able to name a window in emacs, and specify that window when opening and creating new buffers. I've looked through the manual but all I can find is find-file-other-window, which ...
3
votes
2answers
617 views

Forcing emacs to run with `-nw` when called from terminal

note: This question might have been asked before ( I think I saw it somewhere), but a quick search did not reveal anything. I would like to tell the difference when a command is run from a shell. ...
6
votes
1answer
487 views

Emacs and windows manager keyboard shortcuts without “Super” key

I found a classic M-series keyboard and I want to use it. However, it does not have the "Windows" key (a.k.a "Super"), only the Shift, Control and Alt modifiers. My keyboard shortcuts are cluttered ...
5
votes
2answers
268 views

Tracing the workings of a function in Emacs

I am learning emacs lisp. One of the things I was playing with was setting variables. So I go and set fill-column to 50 (setq fill-column 60). After this evaluating fill-column does give me 60, but ...
4
votes
2answers
734 views

Why is my hostname different in Emacs?

So I changed the name of my computer recently, by editing /etc/hostname. The bash prompt is user@name, so I know it has worked. But in emacs, in the window bar it says emacs@name.tiscali.co.uk. ...
6
votes
4answers
2k views

Emacs sync w/ 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?
6
votes
2answers
449 views

Directory shortcuts in emacs buffer

So I asked this question about directory shortcuts in a shell. The idea is I'd like to be able to open a file in /home/Documents/foo, say, by typing C-x C-f ~foo/file. So, is there a way to emulate ...
2
votes
1answer
384 views

How can I suppress unneeded output from emacsclient?

I use emacs fairly regularly and am trying to configure my system to use emacsclient when possible. To do this I have done the following: In .bashrc: EDITOR='emacsclient -ca emacs' ...
142
votes
14answers
38k views

What are the pros and cons of Vim and Emacs?

How would you compare these editors? What are the pros and cons of each? [note] This is not meant to be answered by those who "hate one and love another" or those who haven't used both.