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
0answers
41 views

Configure the fields of the Rmail summary

How do I configure the fields of the Rmail summary? The code is in rmailsum.el, but I just can't find the place! For example, the first column in the Rmail summary seems to indicate... mail number? ...
3
votes
2answers
149 views

Creating Emacs TAGS file

I am working through the "Emacs Lisp Intro" book within Emacs 23.4.1 on Debian Wheezy (CrunchBang Waldorf). Section 4.1 discusses the find-tags command and the TAGS file. Instructions are included to ...
2
votes
1answer
124 views

Graphical console applications in Emacs

I am having trouble running htop within an ansi-term in Emacs 24.2. It looks like some of the control characters are not interpreted correctly. I thought ansi-term was capable of handling font ...
6
votes
1answer
86 views

How can I have different Emacs sessions loaded on different Emacs windows while using Emacs on daemon mode?

I'm currently using Emacs on daemon mode. I save my sessions using the desktop package. I also combine that with this in order to have several named sessions saved. If I have several Emacs windows ...
2
votes
2answers
150 views

How to close gdb (or other frames) on emacs?

I'm learning about emacs (using version 2.3 on Ubuntu 10.10), and I'm having some trouble with the frames. When I run gdb, for example, I have to get my mouse and click "File->Close" to close the gdb ...
3
votes
1answer
388 views

emacs --daemon crashing after closing emacsclient -c

I start emacs daemon with the following commnad. $ emacs --daemon This seems to work. After this I start emacs client as follows $ emacsclient -c Whenever I close the emacsclient, the server ...
1
vote
1answer
96 views

How to configure Emacs for literate programming?

I would like to use Emacs for literate programming. I want my code to look like this . <<class Hufftree definition>>= template<typename DataType, typename Frequency> class ...
2
votes
0answers
208 views

Can emacs use gpg-agent in a terminal at all?

I understand that there are problems with getting pinentry-curses to work with emacs (see some of the comments on http://emacswiki.org/emacs/EasyPG), and so using emacs in a terminal isn't compatible ...
1
vote
1answer
66 views

Emacs function on set of files

Is there a way implemented in Emacs to apply a function on a set of files? (Or, if not, do you know of such an extension?) For example, if you have a project in a directory (say, scripts to compile ...
3
votes
3answers
552 views

How to use Emacs to recognize and automatically open GPG encrypted file in ASCII armored format?

gpg -ca passwords.txt create encrypted ASCII file passwords.txt.asc. Emacs open the file as a normal text file: -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.19 (GNU/Linux) ...
4
votes
1answer
85 views

Emacs depends on perl

Why does emacs depend on Perl? I thought it is all based on C/Lisp? Emacs Version 24.1.4.fc17 (Working on a fresh out of the box fedora17)
6
votes
2answers
540 views

emacs colors based on $TERM environment variable

I want to know if it is possible to make emacs, when running in a gnu screen or tmux session, use the same colors as when TERM=xterm. In a gnu screen or tmux session, TERM=screen and emacs uses a ...
4
votes
2answers
294 views

Emacs move to next whitespace

In emacs there are the functions forward-word and backward-word. Are there also functions which move the point to the next/last whitespace?
0
votes
0answers
81 views

How do I remap Caps_lock to Ctrl from inside emacs?

I use emacs on several machines between work and home, and I'm naturally interested in remapping that Caps_Lock key to save my finger from agony. On some platforms it's a bit more difficult to do than ...
3
votes
1answer
64 views

Undo everything in emacs

Is it possible to undo everything in an emacs buffer in just one step? I can do it step by step using C-x u but how can I do all steps just with one command?
1
vote
1answer
152 views

Reattach to Emacs session

I was trying to save in Emacs and pushed something wrong and Emacs closed. Judging by ps aux | grep emacs the emacs process is still running with the file I need to save running. (Opening the file ...
3
votes
1answer
109 views

How to use the Meta/Alt Key with tput?

I want to redefine keybindings for the commandline of a lisp dialect. The commandline is actually modeled after Vi and implemented with tput/terminfo. I want an alternative version with Emacs ...
2
votes
1answer
346 views

How to jump on a position specified by line and column?

When opening a file one can use $ emacs +2:9 practice.b Which will open file ‘practice.b’ on line 2 and character 9 on that line. How do I jump like this in an already running Emacs? I know about ...
2
votes
1answer
335 views

Set tab indent in Emacs

I have a very simple thing I want to do in Emacs. I want to set it so that when I press the TAB key, it inserts two spaces. Just this. It's all I ask. I have tried doing this for a couple of years ...
4
votes
3answers
823 views

How to replace current word under cursor in Emacs

How do I replace current word under cursor in Emacs? I know that I can use query-replace or replace-string but every time I do so I have to type entire string to be replaced, this is just annoying. ...
2
votes
1answer
246 views

Emacs and Trac Integration

Is there a way to integrate Trac and Emacs? e.g. edit Wiki pages in org mode, edit and manage tickets from within emacs?
4
votes
1answer
98 views

In Emacs, how do I inspect what has been modified in a buffer (before saving and overwriting the file)?

In Emacs, how do I inspect what has been modified in a buffer (before saving and overwriting the file)? (In a sense, the requested action is an analog of git status and git add -i showing what has ...
5
votes
2answers
276 views

vim customized with emacs commands (insert mode only)

I was an emacs user, and I have to switch to vim. But I miss some basic emacs commands in vim insert mode: C-A C-E C-K C-Y C-x C-s ... and some other I know that I can press Escape and then press ...
3
votes
2answers
111 views

Getting emacs to convert latex on the fly?

What's really nice about posting in the math stackexchange, and other forums, is that you can view the latex symbols right below as you're typing your post. Is there a way to do this in emacs? That ...
5
votes
1answer
864 views

Anything , Ido and similar tools for Emacs: Overlap and differences

Reading about Anything and Ido for Emacs I noticed that they support similar features. The EmacsWiki provides great info about both, but I still can't tell what sets them apart. What are the ...
1
vote
1answer
385 views

M-x ansi-term colors in Emacs 24.x

I have noticed that some colors in LS_COLORS don't work when running a shell inside M-x-ansi-term in Emacs. For exmaple; di 00 94 is supposed to turn on bold on light blue on directories on ...
2
votes
1answer
322 views

Installing slime and emacs

I'm trying to install SLIME on Fedora 17 so that I can do some lisp. Here is what I downloaded: http://www.common-lisp.net/project/slime/#downloading The CVS Snapshot link. I have a .emacs file: ...
1
vote
1answer
152 views

Emacs: Switching automatically to char-mode when switching to an ansi-term window

Say I have multiple windows open in Emacs 24.1 and that one of those windows is an M-x ansi-term window with a shell. By default, when I switch to an ansi-term window, Emacs activates Term: line run, ...
4
votes
1answer
177 views

Emacs M-x query-replace wrap around the document?

I use M-x query-replace on Emacs (M-%) quite often, and I like that I have the flexibility to choose between these options: Spacebar Replace text and find the next occurrence Del ...
1
vote
1answer
495 views

How to bind “Ctrl-Alt-b” to the prefix of tmux?

Tmux uses Ctrlb as its prefix, but Ctrlb conflict with Emacs. I want to bind CtrlAltb to tmux's prefix. I guess it may be C-M-b but didn't work...
3
votes
1answer
65 views

Timelineview of all agenda files

Is it possible to get a timeline view that combines the entries from all agenda files?
4
votes
2answers
583 views

How to modify write permission on current buffer in emacs?

Is it possible to change the write permissions on a file from inside emacs, without killing/re-opening the buffer? Sometimes I forget to modify the permissions on a file before opening it. I can ...
4
votes
1answer
293 views

Emacs simple arithmetics in query replace

Is it possible to do the following in emacs: Query replace all numbers in a region by the number +n, for example if you have: 12 and 7 are nice numbers let n be 3, then it should transform to 15 ...
1
vote
3answers
413 views

Open application on custom desktop in xmonad

Suppose I call shell-command from emacs for example (shell-command "evince"). Is it possible to move the application (in the present example evince) started this way automatically to desktop 5 in ...
5
votes
2answers
261 views

Emacs: Open a buffer with all lines between lines X to Y from a huge file

In the same spirit as this other question: cat line X to line Y on a huge file: Is there a way to open from within Emacs (and show on a buffer) a given set of lines (e.g. all lines between line X ...
2
votes
1answer
255 views

String syntax for the kbd macro in Emacs [duplicate]

Possible Duplicate: Associating a function in Emacs after looking up the code with M-x describe-key I have typed the following macros on my .emacs file (global-set-key (kbd ...
7
votes
3answers
637 views

My `which` command may be wrong (sometimes)?

I've compiled the last emacs version from the source code (v24.2) because the version installed on my machine is (quite) old for me (v21.3). I've done the usual: $configure --prefix=$HOME make make ...
1
vote
1answer
85 views

Associating a function in Emacs after looking up the code with M-x describe-key

I would like to associate the following function (which toggles on and off full-screen on the active buffer): (defun toggle-maximize-buffer () "Maximize buffer" (interactive) (if (= 1 (length ...
2
votes
1answer
421 views

Control and up/down keys in terminal for use by emacs

Is it possible to use C-up and C-down when running emacs in the terminal window (when starting emacs from the command line with the -nw flag)? What should my terminal send when I press C-up and C-down ...
3
votes
1answer
78 views

can color-theme bind to a buffer?

I want to use different color-theme for different file types. I tried to use add-hook to set the color-theme for the major-mode, but it only applies when the buffer is first load. If I switch to ...
2
votes
1answer
46 views

Emacs: error when the function is called in a hook

I defined a function in my .emacs file, and I want to call it when a major mode is loaded. My function is interactive. If I invoke my function by M-x, everything seems alright. But if I invoke my ...
5
votes
1answer
289 views

Relocatable emacs

Is there a way to build emacs on Linux so it doesn't embed the path where it was built into the binary, and it can be relocated harmlessly to a different path? That is, if you build with ...
0
votes
2answers
73 views

Cancel auto-fill in emacs

When using emacs (version 24.1 if that makes any difference), I would like to have a way to remove all the automatic line braking inserted by the auto-fill minor mode. Disabling auto-fill-mode is ...
2
votes
0answers
35 views

Handle local links to local files in emacs

I have a LaTeX document where I often have to insert pathnames of files on my machine of other LaTeX files. Is there a way in emacs do get the following: A command which opens a file selection ...
1
vote
1answer
143 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
507 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
1k 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
332 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 ...
5
votes
2answers
639 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
3answers
568 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?