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

2
votes
1answer
511 views

untabify on save in Emacs 24 without make-local-hook

I'd like to untabify whenever I save a buffer. This worked fine until I upgraded to Emacs 24 which broke it, as there is no make-local-hook anymore. Have a look: ;;; untabify on C-x C-s (except for ...
2
votes
2answers
594 views

emacs shell mode (M-x shell)

When I am using the emacs M-x shell mode I see strange characters on my screen which I believe are related to my prompt (which includes an End-Of-Line) and the use of colors. So, here's what I see on ...
3
votes
1answer
102 views

Symbolic link starting with .#

I have a symlink in one of my directories that has the following name: lrwxrwxrwx 1 XXXX ZZZ 37 Jan 15 18:18 .#perl.org -> XXX@YYY.com.2980:1344441539 I am wondering what this symlink ...
5
votes
1answer
207 views

Synonyms (from a thesaurus) in Emacs

I use Emacs 23 on Debian sid. I can check the spelling of a word in Emacs with M-$. How can I obtain synonyms (using a thesaurus?) for a word in Emacs? None of the following were useful: one, two, ...
1
vote
2answers
4k views

How to install emacs using YUM without X11 libraries?

I have installed a minimal installation of CentOS 6.3 inside a VirtualBox VM. Now, I would like to install Emacs for use from the command line only. When I do a search for emacs using yum search ...
3
votes
1answer
199 views

canlock-password - hashed password (?) mysteriously in .emacs

In my .emacs, this has appeared, for unknown reasons: (custom-set-variables ; ... '(canlock-password "fdd7041be5b...") And so on, totalling 40 characters and digits. C-h v offers this: ...
2
votes
1answer
59 views

How to create a function to fill the region to a certain width?

Sometimes I justify text in emacs using C-u 70 M-x fill-region. I would like to have a function in my .emacs file that has a parameter so that I can use a shortcut to call the function instead of ...
1
vote
0answers
59 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
246 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 ...
3
votes
1answer
164 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
141 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
259 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 ...
5
votes
1answer
609 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
111 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
1answer
290 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
82 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
813 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
96 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
820 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 ...
5
votes
2answers
530 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
134 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
69 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?
2
votes
1answer
246 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
126 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
699 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
520 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 ...
8
votes
3answers
2k 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
358 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?
5
votes
1answer
120 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 ...
6
votes
2answers
502 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
115 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 ...
6
votes
1answer
1k views

Helm (formerly anything) , Ido and similar tools for Emacs: Overlap and differences

Reading about Helm 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 differences ...
1
vote
1answer
522 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
500 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
2answers
350 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
334 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
804 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
84 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
1k 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 ...
5
votes
1answer
477 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 ...
2
votes
3answers
524 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 ...
7
votes
3answers
457 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
300 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
1k 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
105 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
774 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
103 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
83 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
338 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
82 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 breaking inserted by the auto-fill minor mode. Disabling auto-fill-mode is ...