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

4
votes
2answers
181 views

How to make a portable Linux app?

I'd like to make a "portable" version of Emacs 24.3. I am using some Debian 7 systems, where I don't have root access. Since Debian 7 is missing Emacs 24, I'd like to build a portable version of it, ...
1
vote
1answer
707 views

Corrupted gnu-screen session not displaying UTF-8 correctly

(Edited to clarify the role of Emacs in the problem with the display.) My current gnu-screen session has gotten corrupted somehow, and Emacs fails to display UTF-8 characters properly. I've ...
2
votes
1answer
19 views

How to switch Emacs windows from vertical split to horizontal split? [closed]

Suppose I have two windows open in Emacs: Window A .............. Window B Is there a way to switch to : : Window A : Window B : : (horizontal split to ...
2
votes
2answers
104 views

Open clickable text in emacs in new/neighboring window

Currently I have a mode (magit to be precise) when I have clickable text switches buffer to the file. However I'd prefer sometimes to open in new or neighboring window. Is it possible to do it? PS. ...
15
votes
1answer
844 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 ...
1
vote
1answer
14 views

how to disable gcr-prompter dialogs?

Whenever i save *.gpg files (symmetric password) using emacs the gcr-prompter displays dialog and asks me for password twice! It's so annoying, especially that my emacs remembers the password i type, ...
2
votes
1answer
288 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 ...
4
votes
1answer
497 views

Colors for menu bar and the scroll bar on emacs 24

I'd like to change the colours of the menu bar and the scroll bar of emacs 24. The instructions of EmacsWiki (the above links) do not work. This might be because I am using emacs 24. According to ...
3
votes
1answer
118 views

Can you run X11 in Emacs?

I'm new to Emacs, and I find it to he very useful, it's almost like a Text UI with tabs and windows and such. And so many applications. Such as IRC, shell, email, and file manager. But there something ...
0
votes
1answer
25 views

Cycling through the *Buffer List* with C-n, C-p

Is there a way to use the C-n or C-p shortcuts (or some other shortcut) in the Buffer List to cycle through the list of buffers? Currently when I get to the top (or bottom) of that list it doesn't ...
2
votes
2answers
57 views

How will apt-get handle my manual installed software?

Suppose the Emacs version in the APT repository is 24.3, I configure && make install my own emacs 24.4. After a long time, the software in the APT repository was updated to 24.5. What would ...
4
votes
1answer
34 views

Save scratch emacs file without access to terminal

I'm trying to save the contents of an Emacs scratch buffer, which I can't access any more due to an inaccessible terminal. On my Linux box I've ssh'ed to a server, and started Emacs. My Linux box has ...
14
votes
3answers
4k views

Shift-arrow not working in emacs within tmux

I recently started using tmux (was a screen user before) and I'm loving it, except for one small problem. I use emacs within my tmux session and I am used to using Shift-arrow keys to move between ...
1
vote
1answer
269 views

php indent in web-mode with Emacs

I'm using Emacs web-mode and write a setting for it like this. (require 'web-mode) (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode)) (defun web-mode-hook () "Hooks for Web mode." (setq ...
1
vote
1answer
34 views

Open an emacs file from terminal

I want to open emacs + an emacs file directly from terminal, the file in question, how should I go about it?
1
vote
0answers
90 views

How to set LANG in locale, despite it's in /etc/default/locale in ubuntu for unicode support?

I run Ubuntu 12.04, I can't set the locale to en_US.utf8. I set the LANG by configuring /etc/default/locale as described here. $cat /etc/default/locale LANG=en_US.utf8 $locale LANG= LANGUAGE= ...
1
vote
1answer
57 views

S-M-* commands aren't recognized by Emacs

I've noticed commands like M-> (end-of-buffer) and M-S-<right arrow> (org-meta-right) aren't being recognized by Emacs. This was confirmed by describing key bindings using C-h k, which showed ...
3
votes
1answer
44 views

Window display table and buffer display table conflict in Emacs

In Emacs; Is there a way for both window-display-table and buffer-display-table to have effect at the same time? The reason is, I'm using Pretty-Control-L (from Emacs Goodies El script package) and ...
0
votes
1answer
17 views

Disable docview in emacs-w3m

How can I disable docview in emacs-w3m? I want to open an Internet pdf file in xpdf or just download it. I don't want it to open in docview.
1
vote
0answers
24 views

Autocomplete include directories in c++

VisualStudio has some extension which checks the include directories and makes suggestions while typing. My current project uses a lot of included libraries, sometimes with rather long pathnames. ...
5
votes
2answers
161 views

Why can't Emacs running in a terminal distinguish Ctrl+; from “;”?

This question arose from my previous question on emacs beta. In short I want to bind C-; to an Emacs functions in a terminal, but it seems that something captures this key before it reaches Emacs: ...
3
votes
1answer
251 views

Can I have emacs automatically indent my whole code after it is all written?

My emacs is set up to automatically indent my code as I write it and also re-indent things correctly if I push tab on any line that got misaligned somehow (usually because I changed the code). I am ...
1
vote
0answers
13 views

Start emacs client on Windows XServer [duplicate]

I have managed to get X-forwarding running to use xemacs on my local Windows machine. Now I can start xemacs from the ssh terminal to my remote linux machine. This results in xemacs running in a ...
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 ...
1
vote
0answers
17 views

How to use emacs alphabet key bind even with Thai input method

I'm emacs user and learning Thai language. I can read and write Thai characters with Emacs comfortably. But all Emacs key binding can't be used with Thai input mode. For example when I try to use ...
20
votes
3answers
10k views

Ctrl-s hang terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and this key indeed hangs my vim. I was ...
1
vote
0answers
34 views

Press Alt+< on a Hungarian keyboard (where < requires AltGr)

I use a Hungarian keyboard layout. To type a less-than sign, I have to press: AltGr+í. By default, the Emacs Meta key is set to Alt, so I think I would have to press all of AltGr, Alt and í at once. ...
2
votes
1answer
250 views

Org-mode: Inserting (advanced) LaTeX equations for HTML expot

I'm using org-mode as working environment, and so far has been extremely useful. One of the wonders of it is the versatility of exporting... I can export to LaTeX or HTML or ODT files from the same ...
1
vote
1answer
38 views

How to know function name inside helm

I just installed helm in Emacs. It works fine, but I want to change some key bindings. For example, Go to precedent level inside find-file is binding with C-l. I want to rebind it with C-w. I can't ...
1
vote
1answer
41 views

Different kinds of copy-paste in Emacs under X

From http://stackoverflow.com/a/65473/156458 Let's be careful with our definitions here An Emacs copy is the command kill-ring-save (usually bound to M-w). A system copy is what you ...
1
vote
0answers
26 views

What determines the encoding of a text file when its content is copied from somewhere? [closed]

In emacs and in gedit, when copy some text from a webpage, pdf file, etc and save it as a text file, how is the encoding method of the resulting text file chosen by the editor? Does the editor choose ...
1
vote
2answers
59 views

Emacs shows octal escapes for some characters in a UTF-8 file

I copied some math formulas into some files under gedit, using the default settings of gedit from websites, such as math.stackexchange.com, wikipedia, ... When I open the files now under emacs, the ...
0
votes
1answer
26 views

Mixture of encodings

For a text which is a mixture of different encodings, is there no way to find all encodings? And convert them to a single encoding such as utf8? I copied from different sources possibly with ...
1
vote
1answer
39 views

How do I change emacs application name from “Emacs” to something else in OSX?

I run multiple emacs instances with open -n -a Emacs.app command. The problem is that it's hard to distinguish between them when you switch with Cmd+Tab, because they're all named "Emacs" there. How ...
0
votes
1answer
43 views

change search regex pattern in Emacs?

I start regex search by C-M-s. After typing in some pattern, I would like to edit the pattern shown in the bottom bar. But it seems that I can only append new characters at the current pattern, but I ...
4
votes
3answers
1k views

No font in emacs on CentOS

When I open emacs over an SSH connection I get this error Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string ...
0
votes
1answer
42 views

Quick way to copy the rest of a line?

In Emacs, I want to copy the rest of the current line. The regular way is to select the rest of the current line, and then M-w. A quicker way is C-k C-_. Is there a non-customized way using only ...
0
votes
1answer
36 views

Can the menu of emacs still be accessible in terminal?

when running Emacs inside terminal emulator, there is a menu bar on the top. Can we select a menu item, expand it and select a sub-menu item? Under Xemacs, we can, but I haven't found a way under ...
3
votes
0answers
200 views

Emacs slow loading time with AUCTeX on TeX files

I installed the auctex and emacs packages on two Xubuntu 14.04 computers, both of which have been working fine. Emacs itself works fine on both, but now with the auctex package installed, when I load ...
1
vote
1answer
39 views

What does “position” mean in iconv error message?

I get error when converting a large file: $ iconv -f GB2312 -t UTF-8 2001.txt -o 2001_u.txt iconv: illegal input sequence at position 245256667 What does the position mean in this error? I tried it ...
4
votes
1answer
41 views

Copy the last Emacs message into the current buffer

Is there a function I could use to quickly copy the message in the echo area (if any) into my working buffer? Should I define the shortcut for that function with define-key or global-set-key or some ...
4
votes
2answers
161 views

mode-specific emacs keybindings

I'm trying to get emacs (23.3 on Arch Linux) to map Ctrl+F12 to the built-in "compile" function when in C-mode (actually CC-mode, which comes built-in as well). So far I've tried the following: ...
6
votes
2answers
2k views

Comparing directories in Emacs

I am experimenting with ediff-directories, but I am not sure I am using it correctly. I read in the documentation that, once I supply two directories to ediff-directories, if I press == Emacs ...
5
votes
2answers
921 views

Prevent unwanted buffers from opening

I'm using emacs for my daily javascript editing, to switch between buffers I use C-x LEFT and C-x RIGHT and I'm fine with this (even if I find it difficult to know the path of the file I'm modifying). ...
0
votes
1answer
31 views

Edit a file in several emacs sessions

Emacs says You want to modify a buffer whose disk file has changed since you last read it in or saved it with this buffer. If you say y to go ahead and modify this buffer, you risk ruining ...
1
vote
2answers
38 views

How to stop emacs server

I started a Emacs in my terminal, and then started running Emacs server inside it by M-x server-start. Now I would like to cancel running the Emacs server without exiting the Emacs process. There ...
4
votes
2answers
85 views

Can emacs render downloaded html files?

From Firefox, I downloaded a .html file, with a directory with name ended in _files, by specifying "Webpage, Complete". When open the .html in emacs, even under html-mode, only the source of the html ...
1
vote
1answer
39 views

Can you further integrate and present sequential moreutils vipe command output in vim using successive splits etc?

I have used the moreutils suite a few times and I find it makes you think further about base utilities and is insightful(and fun). For instance, vipe allows running an editor - like vim - in the ...
0
votes
1answer
75 views

Color of emacs margins

With the following in my .emacs I get narrow margins in text-mode buffers: (defun my-set-margins () "Set margins in current buffer." (setq left-margin-width 30) (setq right-margin-width 30)) ...
0
votes
1answer
93 views

Emacs windows, frames, server and clients: threads or processes?

From http://www.gnu.org/software/emacs/tour/ Emacs server Some people like to keep only a single instance of Emacs open and edit all their files in there. Doing this has a few advantages: ...