A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor."
0
votes
1answer
10 views
How to replace tab's indent by space's indent with web-mode in Emacs
I don't want to use tabs for indent, so I add (setq-default indent-tabs-mode nil) in my emacs init file.
With the setting indents are created by spaces in web-mode, but it doesn't change already ...
0
votes
1answer
16 views
Emacs: query-replace prepend text to the found string
The scenario is that I am trying to append a new class to all the style declrations in my css file.
So
.oldclass{
float : left;
}
should change to
.newclass .oldclass{
float : left;
}
The ...
2
votes
1answer
32 views
Uninstall & remove emacs (installed via “make”)
I have installed emacs24.4 through instructions on this site. Now I want to uninstall and remove it completely, but since I haven't installed emacs via apt-get I can't seem to remove it either via ...
3
votes
0answers
25 views
Emacs automatically adding BOM to XML file
This appears to be related to this discussion but I have exactly the opposite use case. I do not wish to insert a BOM but emacs appears to be inserting one in XML mode (without even being in ...
0
votes
0answers
20 views
X protocol errors using lxde on top of Xdmx
I'm trying to setup Xdmx with lxde. Now I have some issues: lxde itself works fine, but as soon as I use it on top of Xdmx, I keep getting various X protocol errors, even when only connecting to a ...
0
votes
0answers
12 views
How to change mouse hovering background in Emacs
When mouse is over a Dired file line, it shows strange background regardless of the highlight-line color. I know there is something to do with theme.
How can I set the background color?
My Emacs ...
1
vote
1answer
17 views
How do I edit text in Cyrillic / Russian on OpenBSD?
I'm trying to make it possible to easily edit text in Cyrillic / Russian on a remote OpenBSD 5.2 amd64.
I'm using emacs-21.4p18-no_x11, which doesn't show any Cyrillic characters whatsoever when I ...
0
votes
0answers
10 views
How to set font width with fontforge
I recently install this font https://www.facebook.com/Code.New.Roman.
It's really nice, but the font width seems strange.
Look at this, fonts with are large than calculated by emacs, with other ...
2
votes
1answer
36 views
Automaticaly rename new buffer in term-mode
In Emacs, let's create a buffer in term-mode with M-x term. The resulting buffer is named *terminal*. If one wants to create another buffer also in term-mode, one usually does M-x term again. However, ...
0
votes
1answer
35 views
What does “wd” mean?
What does "wd" mean in the following output of an emacs background job?
$jobs
[3]- Stopped emacs -nw new\ file (wd: ~/dirlinks/cs/computer_system/composition/hardware)
2
votes
0answers
143 views
Where are the default font preferences in a modern Unix desktop stored (those which affect the choice of the font by an uncustomized Emacs 24)?
My situation and my question are like the ones in http://lists.gnu.org/archive/html/help-gnu-emacs/2012-06/msg00183.html:
after the recent upgrade to emacs 24.x (...) my font size
is too large ...
0
votes
0answers
44 views
Input is disappearing in emacs
I am currently running the latest version of emacs on RHEL 6.6. The issues I am having is that sometimes when I type input, some of the input randomly disappears and will then reappear when I ...
3
votes
1answer
37 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 ...
1
vote
1answer
59 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, ...
0
votes
1answer
31 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 ...
4
votes
2answers
71 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 ...
2
votes
2answers
85 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 ...
3
votes
1answer
144 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 ...
1
vote
1answer
40 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?
2
votes
0answers
200 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
0answers
30 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. ...
3
votes
1answer
269 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 ...
5
votes
2answers
199 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: ...
1
vote
0answers
20 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 ...
0
votes
1answer
22 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
49 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.
...
1
vote
1answer
80 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
34 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 ...
0
votes
1answer
31 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
2answers
74 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 ...
1
vote
1answer
40 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
45 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 ...
0
votes
1answer
43 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
61 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 ...
4
votes
1answer
51 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 ...
1
vote
1answer
74 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 ...
1
vote
1answer
56 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 ...
0
votes
1answer
36 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
45 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
106 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
45 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
123 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))
...
1
vote
1answer
100 views
replace control characters in Emacs?
This is a small text:
What\222s with All the Parentheses?
In Emacs \222 above is shown as a control character (in red). It is supposed to be ', but I don't understand why it is \222 instead, ...
1
vote
1answer
87 views
In emacs term-mode, what is char-mode and line-mode? How do they differ?
Googling, I can only find how to switch between these two, but no description of what they are.
So, what is char-mode and line-mode? And what mode are usually regular shells in?
0
votes
1answer
111 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:
...
0
votes
1answer
140 views
What does C-u 0 mean in Emacs
What does C-u 0 followed by another command mean in general in Emacs?
For example,
I thought C-k and C-u 0 C-k were the same, but find out that
C-u 0 C-k kill the part of the current line before ...
1
vote
0answers
67 views
In Emacs' org-mode, any way to hide the subtree with timestamp not set to today?
I just started to learn org-mode (and Emacs) and I plan to use it as a calendar/timetable/todo-list hybrid. Is it possible to hide entries with timestamp not set to today? If so, how?
For example, ...
1
vote
0answers
60 views
emacs org-mode clocktable - clock-in clock-out columns
Is there a way to configure the summary clocktable to have two extra columns for clock-in and clock-out times.
| Headline | Clock-in | Clock-out | Time | |
...
4
votes
2answers
365 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, ...