The Emacs text editor, one of the main text editors used on Unix and derivative operating systems.

learn more… | top users | synonyms

2
votes
2answers
106 views

Org mode capture

I'm trying to make a 'class' template for org-capture. What I want is to easily make this kind of entry: * TODO <course>: Week <week> Lecture <number> SCHEDULED: %^T ** TODO ...
2
votes
1answer
86 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 ...
0
votes
0answers
12 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 ...
1
vote
0answers
76 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
1answer
263 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> ...
2
votes
0answers
131 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, ...
1
vote
1answer
117 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 ...
0
votes
0answers
79 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 ...
0
votes
1answer
47 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 ...
1
vote
1answer
38 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
124 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 ...
1
vote
1answer
72 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
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 ...
0
votes
1answer
102 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 ...
0
votes
1answer
90 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 ...
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 ...
1
vote
1answer
59 views

Highlighting all compilation errors in emacs

Is there a good way to highlight all compilation errors in emacs, specifically in haskell-mode? The function next-error (C-x `) highlights only a single error, but it doesn't set match-data to the ...
0
votes
0answers
127 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
35 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 ...
2
votes
1answer
286 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
0answers
40 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
60 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 ...
0
votes
0answers
162 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
123 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 ...
2
votes
1answer
428 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, ...
1
vote
1answer
99 views

How many keyboard shortcuts are in Emacs? [closed]

How many keyboard shortcuts are in Emacs? I was looking at XKCD Comic 378: So I'm wondering, how many keyboard shortcuts actually are there? How much of an exaggeration is this comic?
2
votes
3answers
53 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, ...
0
votes
1answer
51 views

In org-mode, is there a way to show the number of undone todo items in a subtree when collapsed?

For example, suppose I have this document: * category 1 ** TODO item 1.1 ** not a todo item ** DONE a done todo item ** TODO item 1.4 * category 2 ** not a todo item ** not a todo item * category 3 ...
1
vote
1answer
27 views

how to find out what command correspond to each menu item in emacs?

For example, in this screenshot, I would like to find out what command is called by clicking on Python->Execute statement.
1
vote
1answer
112 views

Is there a way to specify minimum minibuffer/echo area size in emacs?

I am running Emacs 24, and due to a separate issue, my input method (uim-el) displays input candidates in the minibuffer regardless of how I set its options. That would not be such a problem if the ...
1
vote
1answer
70 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 ...
1
vote
1answer
116 views

Emacs compilation-mode to always use visual-line-mode

I'm attempting to have emacs compilation-mode always use visual-line-mode. The code I'm using is: (add-hook 'compilation-mode-hook (visual-line-mode)) I've tried various other permutations. Such as ...
0
votes
1answer
87 views

Color numbers differently in emacs

I want to color numbers differently from the text characters in emacs for any mode that emacs is in. How do I modify the .emacs file for this purpose? I would like my numbers to always show up in ...
0
votes
0answers
106 views

RSS feeds in org-mode (no subheadings for new entries)

I'm having trouble setting up an RSS feed in org-mode. I'm using org-feed.el (http://orgmode.org/worg/org-contrib/org-feed.html) and have set up my feed (from Pinboard) in org-feed-alist. I have no ...
1
vote
0answers
96 views

Setting up Emacs and SLIME to work with Kawa

According to this site here, it is possible to have SLIME work with Kawa Scheme. However, I cannot find any instructions anywhere on precisely how to do this. Even on this site, the link goes to an ...
1
vote
0answers
58 views

Edit text file contain unknown format

I have a text file when I open it with gedit warn me: and when I open with emacs: I have another file with this character and I want to remove this character from that file with a bash script.
1
vote
2answers
48 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
0answers
114 views

Gnu Emacs on Windows 7 very slow when VPN connection is used

I'm using Gnu emasc 24.3 on Windows 7 and normally I don't have any problems with speed/responsiveness. I'm launching Emacs with the runemacs.exe However, when I am travelling and try to connect to ...
0
votes
2answers
62 views

Emacs spellcheck tool for comments in c/c++ code

I am using emacs as my text editor for c/c++ code. Is there any tool which spell check comments for me? Thank you.
1
vote
1answer
31 views

emacs: C major mode: how to get Tab key to insert tab (\t) always?

How to set Emacs to use \t for tabs, when C major-mode is active, and cursor is at any position - including line beginnings?
0
votes
1answer
39 views

emacs and pasting from clipboard gives this “don\u2019t know”

How can I stop this happening please, when I import text from the debian clipboard into emacs like this source text Remember, most breast lumps are not cancerous, but you don’t know if you don’t ask. ...
1
vote
1answer
66 views

Multiply two vectors in Calc element-wise

2: [0.5, 0.25, 0.125, 0.125] 1: [1, 2, 3, 4] Suppose, this is how the stack looks like, what I'd like to be the result of multiplication: [1 * 0.5, 2 * 0.25, 3 * 0.125, 4 * 0.125] Instead, Calc ...
1
vote
1answer
204 views

Emacs maximized but leaves few pixels in Awesome WM

I love emacs and Awesome WM. But dont know why, but when I maximize the emacs, it always leaves few pixels in Awesome WM. I've tried font_size_honor=false for emacs class in rc.lua but it just does ...
1
vote
1answer
36 views

How to change string literals in Emacs (from a VIM user)

Assume that the cursor is at the top of the following file: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Hello World</string> ...
1
vote
0answers
46 views

How can I make emacs ignore bell when recording macros?

Currently, emacs will halt the recording of a macro when the bell rings. This is extremely useful for things like halting when C-s fails to get a new match. However, when I'm recording a macro, and ...
1
vote
4answers
227 views

Emacs not loading init file when run as sudo

Emacs loads my .emacs.d/init.el startup file just fine when run as a regular user, but refuses to load it when run as sudo emacs file.type. I have tried changing the owner of .emacs.d to root with no ...
2
votes
0answers
24 views

Emacs DocumentView: how to see PDF contents page?

Basically what the title says - if I open a PDF using Emacs' DocumentView, how can I bring up the PDF's contents page? Also, how would I 'jump' to a particular page in the PDF (from the contents page ...
0
votes
1answer
120 views

How can I have Emacs window(s) and cygwin shell running simultaneously on Windows?

I have Cygwin working with Emacs 24.3.1 on windows 8.1 with Emacs downloaded from the Cygwin installation, however I can't use Emacs and the Cygwin shell at the same time or open up multiple Emacs ...
0
votes
1answer
156 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 ...
1
vote
1answer
96 views

Emacs — how to press C-d in Eshell to exit cat file creation

How do I use the Control key while using Eshell to send that command to the remote server -- e.g., when creating a cat file and I need to press Control+d to save and exit, or when using Nano edit and ...