Emacs is a powerful text editor with an embedded Lisp environment, which allows for great extensibility. Emacs is a lisp environment with many features that also make it a powerful text editor.

learn more… | top users | synonyms

1
vote
0answers
22 views

How can I get Emacs to run correctly in a Windows console with codepage 65001 (UTF-8)?

When my codepage is set to 65001 (UTF-8) in a Powershell terminal, emacs -nw displays garbage. When the codepage is set to 437, emacs -nw works. I would like to be able to run emacs -nw (much quicker ...
0
votes
0answers
42 views

Synergy + Emacs C-<SPC> to set mark not working

Problem When I use C- (Ctrl+space) in Emacs, it fails to set the mark. The alternative keybinding, C-@ works, but requires an extra finger and mindfulness. Emacs doesn't have trouble recognizing the ...
5
votes
4answers
1k views

Why does Emacs insert ^m at the end of every line

Why does Emacs insert ^m at the end of every line in my Linux environment?
5
votes
3answers
2k views

Where is the .emacs file located on Windows?

I have installed EmacsW32. I need to edit my .emacs file. Where is the .emacs file located on Windows?
2
votes
1answer
58 views

Emacs theme uses different colours in terminal

I made a theme for Emacs 24, using deftheme, based off something I generated with 4bit, with a theme structure loosely based on the built-in tango theme. In the screenshot below, you can see emacs ...
1
vote
1answer
41 views

How can I have an 'truly' interactive command in emacs?

How would I implement a bare bones function that 're-evaluates' with every key-press? I mean key-press loosely; I'm looking to emulate the behavior of isearch and friends. I would be using this to ...
0
votes
1answer
136 views

Emacs rmail and gmail (IMAP) and google contacts

It's been a few years since somebody asked http://stackoverflow.com/questions/66132 So, I'll ask it again. Despite several google searches and having a look at the rmail website and the Emacs ...
0
votes
1answer
102 views

evil-mode '>' evil-shift-left loses selection

Is there any reason that evil-mode evil-shift-left loses the selection? I.e., I'd like the ability to hit the '>' and '<' multiple times on the selection to shift text left and right. Here's the ...
14
votes
4answers
2k views

Can I create directories that don't exist while creating a new file in emacs?

In emacs, I create a file by visiting it with C-x C-f. Let's say I'd like to create /home/myself/new_directory/file.txt. If new_directory does not exist yet, is there a way to have it get created ...
0
votes
0answers
23 views

emacs ispell can't handle m-dash

When I try to spellcheck in emacs (using M-x ispell) on a file with an m-dash separating words without a space, I receive the following error: ispell-process-line: Ispell ...
1
vote
0answers
29 views

Change encoding of a text file in Emacs?

Emacs shows in a text file: Given a finite alphabet \246\262, (empty set) \2016\3221 denoting the set \2016\3221. But it should show Given a finite alphabet Σ, (empty set) ∅ denoting the set ...
2
votes
1answer
300 views

Trouble understanding endianness

Let's say I open a tiff file in emacs and see the following in hexl-mode: 0x08000400 and I know the file is little endian. Does that mean the number is actually 262152 in decimal, or 0x00040008 ...
0
votes
0answers
10 views

How can I trick nxml-mode into accepting <<…>> as comment syntax?

I'm using org-babel to create an XSL template and would like to use the tangling capabilities. Since as far as I'm aware <<…>> isn't valid XML anyway, I would like to add it as comment ...
2
votes
1answer
173 views

How can I fold arbitrary tags with nxml-mode?

I would like to fold <type> <xsl:attribute name="multiplicity"> <xsl:choose> <xsl:when test="collection = true">*</xsl:when> ...
1
vote
0answers
39 views

How can I customize the background color for the active window in emacs?

Related: How can I change the background colour of a single emacs buffer? I would like to change the background color of the active buffer to, say, white. This sort of thing is possible as ...
2
votes
0answers
108 views

LC_LOCALE settings interactions between Mac OSX and LINUX via SSH

I have been struggling with the following problem for years now. I have never been able to solve it, and I adopted several workarounds to keep being able to work. However now I can't stand it anymore, ...
5
votes
2answers
348 views

Edit any text input shown by a browser (mostly Chrome) with Emacs

Goal: to edit any text input (mostly text areas, but also single line inputs) shown by web browsers with an external editor, in my case, Emacs. Achieve a high level of comfort. Whenever I'm browsing ...
3
votes
2answers
409 views

How to open a file from bash command line in the already open Emacs instead of a new instance?

How to open a file from bash command line in the already open Emacs instead of a new instance? When I type $ emacs file.txt it opens a new Emacs instance, instead of opening the file in the ...
1
vote
1answer
72 views

Emacs (setq ns-pop-up-frames nil) not working

I'm using Emacs 24.3.1 under Ubuntu 13.10 I need Emacs to open all new files in the the same window. According to EmacsWiki: One Window, I added (setq pop-up-windows nil) To my configuration ...
1
vote
1answer
54 views

Unexpected result from face-font-rescale-alist in emacs

I am trying to modify the default size of a font using (add-to-list 'face-font-rescale-alist (cons "^.*STIXGeneral.*$" 0.95) t) This is supposed to rescale all fonts with name STIXGeneral by 0.95, ...
0
votes
1answer
35 views

Getting Emacs to open webpages in Iceweasel

I'm trying to get Emacs to open webpages in Iceweasel. Following the instructions given here, I've had Custom add the following lines to my .emacs: '(browse-url-browser-function (quote ...
0
votes
0answers
62 views

Emacs evil-mode paste encoding

I'm using evil-mode with Emacs. When pasting text with the "+p command (paste from + register) i see sequences of \342\200\231 in text instead of the apostrophe (') character. The clipboard-yank ...
4
votes
1answer
1k views

Easy way to swap characters in command line with emacs key bindings?

If I'm in vi, and I see that I've transposed two characters, it is easily fixed by putting the cursor over the first and typing x followed by p in command mode. Is there a similar trick that works at ...
0
votes
1answer
31 views

Emacs: dolist doesn't work with dot

I'm new to Emacs. I intend to use sh-mode for a few for file name patterns, so I added the following lines to ~/.emacs.d/init.el: (dolist (pattern '("\\.zsh$" "\\.?zshrc$" ...
1
vote
1answer
69 views

Emacs: make debug-on-error catch errors

When I open an empty haskell file, which activates haskell-mode, I get the message user-error: No items suitable for an index found in this buffer If I do the same thing, but call ...
0
votes
0answers
18 views

Emacs Org mode don't replace Org extension with HTML

I'm using Org 8.2.2. I'm trying to export Org document to HTML such that it preserves ".org" extension in links. I've found two ways that work, but none is satisfactory: I can customize ...
7
votes
1answer
547 views

How to enable automatic LaTeX math preview in org-mode/Emacs?

I am using org-mode 8.0, Emacs 24.3, Auctex 11.87, in Windows. I was able to use LaTeX preview functions in org-mode files by pressing Ctrl + X, Ctrl + C, Ctrl + L. However, I think it would be more ...
2
votes
1answer
194 views

Getting Flycheck to include the gtk stuff

I'm using Flycheck on my Emacs, and I'm starting to learn GTK. However, Flycheck obviously isn't aware of this stuff, and gives me errors on those #includes. I've tried manually including each of the ...
0
votes
1answer
80 views

Is it possible to change font size differently according to language in Emacs?

I'm looking forward to a way to change font size in Emacs. I can change easily "all" font size like this: (set-face-attribute 'default nil :family "Consolas" :height 110) But I want to change font ...
3
votes
2answers
230 views

How to open an Emacs bookmark in a new frame?

In Emacs I can do C-x 5 C-f or C-x 5 f to find a file in a new frame. I want to do something similar but for bookmarks. How can I jump to a bookmark in a new frame?
0
votes
1answer
53 views

How do I find out where emacs 24 (OSX) puts my aspell corrections?

I would like to see if it's possible to back them up into github with the rest of my dotfiles. I searched the config options, but am only seeing the default dictionaries used. I'd like to know where ...
6
votes
3answers
3k views

How to insert tab character in `Text` mode?

I have tried to parse my language_data.txt, which is edited by emacs. The different column is seperated by "\tab". But when I read the file, it is found that the tab characters has been replaced by ...
0
votes
1answer
27 views

Unexpected display of return value of point in emacs

If I go to the end of my .emacs file, and execute (point) with M-:, I get the following message: 37018 (#o110232, #x909a, ?邚) Why does emacs feel the need to tell me what unicode character ...
8
votes
1answer
225 views

How to group bookmarks in Emacs?

I would like to group my bookmarks like buffers with ibuffer or newsgroups with gnus by certain criterias like projects for example. I also tried Bookmark+ but couldn't get anything like this working. ...
4
votes
1answer
81 views

Emacs --no-window-system menu

I've noticed that once $ emacs -nw is called, the usual emacs menu appears on the upper part of the terminal. QUESTION How does one use that menu?
0
votes
0answers
94 views

Inconsistent emacs font height for unicode mathematical symbols

When inserting uncommon mathematical unicode symbols (normally through font-lock-add-keywords), I experience this issue that when my default font does not have a particular character, another font ...
0
votes
0answers
30 views

Use control-nonletter with Emacs in xterm

I mostly use Emacs in a window (I mean a normal GUI window, I guess this is what Emacs would calls a "frame" for which display-graphic-p returns t) but ocasionally use it in inside a terminal ...
0
votes
0answers
33 views

Flycheck not doing on-the-fly checking in Emacs anymore

I use Flycheck in Emacs24, and so far, I haven't had any problems with it. However, recently, it decided to stop doing 'on-the-fly' checking of my files, and no longer shows warnings as I type and/or ...
1
vote
0answers
46 views

Emacs Gnus email decrypt smime without openssl

I use gnus for my email. Every once in a while, I receive an encrypted email; when I answer "yes" to Gnus offer to decrypt it, it responds smime-verify-region: No CA configured. Now, my workplace ...
12
votes
4answers
4k views

How do I re-open a file in emacs?

In older emacs versions I used to type: C-x C-f RET And it would re-open the file currently visited in the buffer. Now (emacs 23.1.1) it opens Dired of the directory.
1
vote
3answers
996 views

On Mac, how to open a file from command line and have it shown in an existing Emacs window?

How to open a file from command line and have it shown in one of the existing windows in the existing frame, otherwise in a new window in a new frame? The default behavior is it is opened in a new ...
1
vote
1answer
174 views

Configuring Proof general for Coq in emacs

I installed Coq in my system from the default installer. Then I added proof general to my existing emacs. But the problem is when I try to run a command in emacs I find the following from emacs, ...
0
votes
1answer
172 views

How to open .tsv file automatically by emacsclient when it's downloaded from Chrome?

On Mac OS X, with Google Chrome, how to open .tsv file automatically by emacsclient, i.e. opening it in the existing Emacs session if there is one, when the .tsv file is downloaded by Google Chrome? ...
1
vote
1answer
57 views

emacs: kill-line doesn't append to kill ring

I've noticed that the behavior of kill-region and yank in my emacs setup seems to have changed. If I highlight a region and kill-region (or even just kill-line) and then yank it, I get some older ...
0
votes
0answers
93 views

PuTTY - No valid incoming packet found

I was getting a "Incoming packet was garbled on decryption" error while trying to save a remote file through emacs (tramp) + pageant + putty I followed advice to 'Share SSH Connections if Possible', ...
0
votes
1answer
73 views

Is there a quick way to indent tags in org-mode?

Org-mode seems to put tags assigned by C-c C-q a fixed number of tab stops after the headline. However, with editing, tag addition, and increased headline length, the tag display can get really ragged ...
1
vote
2answers
42 views

Emacs startup, how to spawn windows and buffers

I switched from sublime to emacs and I love it. Org mode is a must-have for me and I would like to customize my emacs startup with it. I usually work like this : ______________ | | B | | ...
1
vote
1answer
54 views

How to change the delays between key presses in Emacs cua-mode

I'm editing a Python file buffer in python-mode, and I want to quickly evaluate a region, so I select the region and press C-c C-r. Since I enabled cua-mode, that turns out to be a command that 1) ...
0
votes
2answers
117 views

How can I eliminate prompts and dialog boxes in Emacs and enable auto-saving?

I never want to answer a prompt that asks me to save changes. Whenever I close Emacs, I'm bombarded with dialog boxes and prompts. How can I avoid them and make Emacs automatically save all unsaved ...
2
votes
3answers
49 views

Version control (hg): can one directory be “synced” with different repositories?

I have a directory for my work files which is under version control (Mercurial): ~/myfiles In a subpath, I have a directory with Emacs packages for my org-mode setup: ~/myfiles/org-mode As I said, ...