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

1
vote
1answer
183 views

How to disable Emacs gnuclient warning on kill-buffer

When I run M-x kill-buffer for a buffer which was openend via gnuclient, I first get this prompt... Kill buffer (default 'my-buffer-name'): Then I get a second prompt/message... Buffer ...
2
votes
1answer
767 views

Defining key sequences in Evil-mode Emacs

I couldn't find any instructions on defining key sequences in the Evil doc. The example given by the developers only covers a single key. (define-key evil-normal-state "w" 'foo) What do I need to ...
8
votes
1answer
2k views

How to get current buffer's filename in emacs?

One of the main features I miss about Vim, is that it always saves the filename of the current file in the % buffer (more info). That allows launching commands easily like: ;; compile current file :! ...
6
votes
1answer
432 views

Emacs mode for man pages

I'm translating man pages, and have run in to a few problems with Emacs. How do you specify language? (With man, it looks like this man -Lsv shutdown for the Swedish "sv" subdirectory, if ...
7
votes
2answers
984 views

Replace require statements by autoload in .emacs file to improve performance

According to these posts: How can I make emacs start-up faster a-nickels-worth.blogspot.de/effective emacs one can somehow replace require and load statements in the .emacs file to speed up the ...
6
votes
4answers
1k views

Open terminal from emacs

Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
4
votes
1answer
637 views

Change view in emacs dired mode

What options are there to change the view of a directory in emacs dired mode? How to apply it? How can I change it on the fly? In particular I want to know: How to make it show the file sizes in ...
3
votes
0answers
236 views

Emacs complains: font 'serif 10' is not defined

I am running Linux Mint 12 and trying to start emacs but keep getting this error: font 'serif 10' is not defined It seems obvious to me that I don't have the correct font. However, I cannot for ...
3
votes
2answers
665 views

emacs - paste text from clipboard without formatting

I am using Emacs 24 for MacOSX and having some problem with pasting code from clipboard to Emacs. The code that I selected usually already nicely formatted (with tab, ident, ...). However, when I ...
3
votes
2answers
183 views

Wiki for emacs users

I am looking for a new wiki software for a small private network. Since all users are very addicted to emacs, it would be nice to make everything "emacs compatible". What wiki software is most ...
2
votes
1answer
103 views

Make 'CTRL-/' behave the same in vtty and xterm

When I press Ctrl+/ in a graphical terminal (e.g. xterm) I get "undo". However, in a virtual terminal (e.g. Ctrl+Alt+F1) I get "backspace". In practice I run into this when I'm using emacs in a ...
7
votes
1answer
2k views

Korn Shell: End, pgup, pgdown, and delete key not working

So basically my End, Pageup/Pagedown, and Delete key are not working in ksh93. I'm running FreeBSD by the way. My arrow keys are working, and so is my home key. Those keys work when I put this in my ...
3
votes
1answer
185 views

Emacs: Different users, different themes, same init file

I use emacs at work, where I usually connect to the system with two different users: myuser commonuser The former is my own personal user, whereas the latter is shared by the whole team to manage ...
2
votes
0answers
253 views

linum auto-activation in .emacs fails

I added the following lines to my .emacs.d/init.el to auto-activate linum at startup: (require 'linum) (global-linum-mode 1) (setq linum-format “%d “) But no way, i still have to manually M-x ...
4
votes
1answer
410 views

How can I use two modes in emacs (markdown and auctex)?

When I edit markdown in emacs I use markdown-mode. However I often have to type some math formulas in the markdown file (processed by mathjax). However for those math parts markdown mode is not very ...
7
votes
2answers
127 views

Ido mode and recently opened files

I recently switched to ido-mode in emacs. When I run C-x C-f (ido-find-file) pressing M-r to do a regex search in the recently used files doesn't work any more. Is there a way to enable this regex ...
2
votes
1answer
164 views

emacs python2.7

I would like to have emacs work as a python ide for me. I can't seem to find how to compile from within emacs. I'm using python2.7 but when I do M-x python-mode it seems to compile using python2.7. Is ...
4
votes
1answer
190 views

Org-mode tables: How to insert result of a system command?

In Org-mode I would like to insert the result of a Unix command in a field. For instance, consider I have the following table: | / | | /bin | | /usr/bin | | /lib | | /usr/lib | I ...
4
votes
1answer
342 views

emacs dedicated completion window

To prevent confusion, I only run one "window" of emacs and so I use window in the emacs sense. I'm looking to get a window split which, let's say 70 in width, contains the completions buffer on the ...
2
votes
3answers
234 views

Emacs Message: save sent mails

How do you make Emacs Message (C-x m) save outgoing mails? Is there a standard way to do this? You could C-x C-s but this is inefficient and easy to forget, besides, you can't be 100% it is the mail ...
1
vote
1answer
240 views

Using emacsclient with custom emacs in $PATH

I want to use emacs command as a substitution for emacsclient -c -a "", which according to man connects to an existing emacs daemon, or creates a new daemon and connects to it otherwise. So i created ...
1
vote
2answers
2k views

How to make a program which run from shell still live after close terminal? [duplicate]

Possible Duplicate: How do I prevent a script from terminating when the shell exits? I use gnome-terminal, and I run emacs under the terminal in the background by executing emacs &, but ...
3
votes
0answers
131 views

Configure Emacs to use Chrome as the web browser of choice?

Using Emacs on a Linux system I click: Scala>Browser Scala API which produces a terminal window with this message: /usr/bin/xterm: Can't execvp lynx: No such file or directory How do I inform ...
1
vote
0answers
87 views

JS indentation on Emacs

I'm following the Douglas Crockford's code convention, but I can't get the correct identation in JS mode in Emacs. I tried to customize the mode, try another mode like js3 but nothing seems to work. ...
4
votes
4answers
692 views

Code templates with emacs

How can I configure emacs to generate some code skeleton? For instance, for C files: #include <stdio.h> #include <stdlib.h> int main (int argc, char **argv) { return EXIT_SUCCESS; ...
2
votes
1answer
51 views

Set EDT emulation by default for Emacs

Using the Emacs editor I can set it to enable OpenVMS EDT editor keypad mode with this command: M-x edt-emulation-on How can I set it so that whenever I invoke Emacs, EDT emulation is the default ...
3
votes
2answers
1k views

In emacs (or other editor) how to display the byte offset of the cursor?

The question indicates my preference to use emacs, but the overriding issue is that I want to be able to do a normal text search and somehow see/copy-paste the byte-offset of the matched text. To ...
2
votes
1answer
618 views

Emacs: query-replace, regular expression, reuse of search result

How do I combine something like query-replace with a regular expression search-and-replace that in part reuses the search result? In my case, how to transform The programmers are "sort of" ...
1
vote
1answer
558 views

How to disable X support for emacs

After I install emacs package on Debian 7 (Wheezy), when I start it up on a GUI terminal, it opens a GUI (GTK-based). I would rather it just run from the terminal.
6
votes
1answer
313 views

Emacs commands in xterm

I found that the commands I used to use in gnome-terminal, those I learned in Emacs, are only partially working in xterm. In some cases, I get strange chars like ÿ, æ, and â instead. Do you know how ...
2
votes
1answer
639 views

Installing vim/emacs on solaris 8

At my new job, they want me to use a solaris 8 operating system, but all my coding experience has been on linux. Linux had a lot of tools built into the system, but it seems like the solaris I'm using ...
2
votes
1answer
65 views

How to ensure that a custom emacs macro operates on region?

Suppose I define a custom macro in emacs in my .emacs file. Is there a way to ensure that it works only on the region I marked in a buffer before executing my command, without going into details of ...
15
votes
3answers
5k views

How do I configure Emacs to use 'ispell' on Mac OS X?

I'm using brew as my package manager for both Emacs and ispell. I have both installed. Doing a quick google, I was unable to figure out how to tell Emacs where ispell is and to load the appropriate ...
2
votes
1answer
976 views

Use WINDOWS key instead of ALT key in xmonad

I use xmonad + emacs. Both use ALT key heavily. So there are conflicts sometimes. My keyboard has WINDOWS key on it. I would like xmonad to use that key instead of ALT. My current ...
1
vote
1answer
407 views

Customize Emacs Ruby Mode for PuppetLabs conifguration

I predominantly use emacs for editing my Puppet configuration files. I use the following settings in my .emacs to load Ruby mode and use it for Puppet config files (*.pp): (autoload 'ruby-mode ...
3
votes
1answer
229 views

Emacs shortcuts in term mode

I've a question about using Emacs as editor and terminal. I split my window into different windows with C-x 3for example. One of the generated Window is used as terminal with M-x term. Usually I ...
3
votes
1answer
189 views

End of lines problem in emacs when editing markdown texts via It's All Text

I want to edit markdown source in emacs using the It's All Text plugin for firefox. In markdown you have to add two spaces to the line-end to get a new line. Suppose there is such a newline in a ...
2
votes
0answers
253 views

Is there a better alternative to sudoedit?

What I really hate about sudoedit is the fact that it always uses a different filename. I'm using emacsclient and when editing a file twice I'm left with two useless buffers. Sometimes I even happen ...
3
votes
1answer
104 views

Why does Emacs make it difficult for me to have two frames open the same buffer?

I have 2 frames. I switch the buffer in first frame to buffer A. When I try to switch the buffer in the second frame to buffer A, Emacs brings the first frame forward. What I want is to open buffer A ...
2
votes
1answer
82 views

Emacs + whitespace: ignoring 'normal' spaces

I would like to use whitespace to detect wrong whitespace (i.e. trailing whitespace on line, tabs instead of spaces etc.). However I would like to still have spaces displayed as spaces. I tried to ...
3
votes
3answers
921 views

How do I set up a .emacs initialization file?

I am using Linux Fedora 13 (Constantine) and emacs 23.1.1. I am trying to set up a .emacs file for initialization, by using emacs itself to edit and save a file .emacs in my home directory. However, ...
4
votes
1answer
498 views

Change column width in an emacs Ibuffer on the fly

Is it possible to change the column width in an emacs Ibuffer on the fly?
3
votes
1answer
144 views

In Emacs, editing C, sort-fields not working, or stating sole completion. Why?

In Emacs, editing C, and trying to execute sort-fields doesn't seem to be working. I enter M-x sort-fields after highlighting a region. At one point it was letting me pass a field number, but then ...
9
votes
6answers
893 views

Text Manipulation Across multiple lines

I Have a file that has text like this: AAAA BBBB CCCC DDDD 1234 5678 9012 3456 EEEE 7890 etc... And i want to match up the Alphabetic lines with the Numeric lines so they are like this: ...
2
votes
1answer
538 views

Why dialog doesn't support emacs shell on Debian?

Dialog is a utility that provides dialog boxes from shell scripts, you may have seen them in aptitude during upgrades. When i use Emacs shell (M-x shell) and type sudo aptitude safe-upgrade, i get the ...
2
votes
1answer
171 views

How to bind emacs abort to key

This is from a .el file loaded in my .emacs file. What do you think? ;;; Sun keyboard bindings ;; the below line does not work: ;; when <cancel> is pressed, the minibuffer echoes "Quit" ;; but ...
2
votes
2answers
313 views

GNU Screen and Emacs

I upgraded recently to OpenSuSE 12.1 from 11.3 and now when I open any files in emacs from inside a screen session, I get a blank buffer. Let's say I open it as: emacs myFile.txt it will open to an ...
1
vote
0answers
127 views

Control + Function Key association in Emacs [closed]

I am trying to associate the keyboard shortcut Control + F10 with gud-step in GUD in Emacs. I thought the following would do the trick, but it doesn't: (define-key gud-mode-map '[C-f10] 'gud-step) ...
1
vote
1answer
1k views

Set default font size in Emacs 23.4?

I use the following in my .emacs to set my default font to Ubuntu Mono: (set-face-attribute 'default nil :font "Ubuntu Mono") However, the defauly font size is too tiny for me. In my menubar I see ...
2
votes
0answers
222 views

eldoc makes emacs use 100% cpu

When I use eldoc, I add this to .emacs: (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode) (add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode) (add-hook 'ielm-mode-hook ...