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
606 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
70 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
842 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
351 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
462 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
3answers
352 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
274 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
772 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
93 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
542 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
88 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
52 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
305 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
76 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 ...
2
votes
0answers
36 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
165 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
582 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
366 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 ...
6
votes
2answers
784 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
736 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
502 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
222 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
527 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
161 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
95 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
169 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
211 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
345 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
121 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
157 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
169 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
279 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
208 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
213 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
121 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
78 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
583 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
47 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
536 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
458 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.
5
votes
1answer
279 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
538 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
63 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
4k 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
784 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
369 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 ...