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

learn more… | top users | synonyms

1
vote
1answer
95 views

How to get org-mode agenda clocking to look at _archive files?

According to the documentation, you can tell the agenda viewer to look at archived tasks also when generating the clock table: :scope The scope to consider. This can be any of the following: ...
1
vote
1answer
96 views

Multiple unrelated directories in one Dired buffer

How can I insert multiple unrelated (non-subdirectory) directories into one dired buffer? In my case, I'd like to prepare a dired buffer containing unrelated directories with multiple file changes ...
1
vote
1answer
31 views

How can I run `M-x compile` under a particular shell in emacs?

I've a piece of software that can only be compiled under my-weird-sh. I like to use some-better-sh in my day-to-day work, so that is my login shell (via chsh). This changes the shell in Emacs to ...
1
vote
0answers
39 views

emacs - Widget Custom Theme

I'm starting using emacs. I know that everything of emacs is customizable. But, one thing I can't even found on internet is modifying the default emacs' widget's Look and Feel. Is there some way to ...
2
votes
1answer
79 views

org-mode: limit export to selected headlines, i.e. opt-in for export

There's a command/option that I can put in my orgmode file that causes only headlines that are explicitly tagged with :export: get exported. What is it?
0
votes
1answer
70 views

Modifying %HOME% on Emacs 24.3 on Windows causes .emacs to not be found

In order for magit to read my git settings on Emacs 24.3.1 for Windows, I added the following configuration from a stack overflow post: (when (string-equal system-type "windows-nt") (setenv "HOME" ...
0
votes
1answer
85 views

Suppress prompt for save file in emacs with recompile

I usually setup a nontrivial compile command, then frequently call 'recompile. Is there a way to suppress the prompt for saving files similar to the approach in auctex invoked with (setq ...
0
votes
1answer
35 views

In Emacs, Listing Buffers in the minibuffer

I am a college student and am just back from my internship. There, I extensively used emacs and I had never used Emacs before. So I am not sure which version of emacs it was. There was this cheat I ...
0
votes
1answer
122 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, ...
0
votes
3answers
245 views

How to make emacs quit the minibuffer with one press of ESC?

I often press the wrong combination of keys and open some obscure minibuffer mode. I have to press ESC three times (I think), which is pretty annoying. How do I make emacs quit the minibuffer with ...
2
votes
1answer
136 views

Quitting emacs takes 10 seconds

Closing emacs 23 in Ubuntu 12.04 and 14.04 takes very long. I have recursively bisected my .emacs file (as per advice from Drew here) and located the following piece as the offending bit: ...
1
vote
1answer
59 views

Shift+s registering as super key in emacs. How to turn off?

Whenever I am in emacs normal mode (as opposed to evil), shift+s registers as "S-" (the super key). This means I cannot enter capital S which is pretty annoying. The problem is obviously due to my ...
0
votes
1answer
21 views

How to read shell and insert in text (using Emacs)?

I want to read and insert output from shell (bash) in a text using Emacs. My idea is to do something like :r!ls in vi, but using emacs.
1
vote
1answer
68 views

Emacs — how to patch a file — Eshell does not support input redirection

When trying to run a patch from an Eshell buffer (e.g., patch nsfns.m < nsfns.diff ), I get an error message (below). Is there a way to apply a patch using an Eshell buffer? If not, is there a ...
4
votes
1answer
76 views

Emacs - move cursor back after mark-whole-buffer & indent-region

I'm Emacs newbie and for automatic re-formating of my source codes in Emacs I've created simple macro using mark-whole-buffer and indent-region commands, mapped to C-j shortcut: (fset ...
1
vote
0answers
72 views

How to protect the prompt (make it read-only) in Emacs term-mode?

With shell-mode, I can do (setq comint-prompt-read-only t) to protect the prompt. The cursor is blocked when I try to move the cursor to the left. The prompt also cannot get erased. Is there a ...
0
votes
1answer
113 views

How can I exclude binaries from rgrep results in Emacs?

I'd like to add the I option to the grep that rgrep generates, but I cannot seem to find the appropriate variable. I've tried: grep-command grep-find-command
0
votes
1answer
26 views

Start an application from the dock within a specific directory

I have an application (Emacs) in the dock that is apparently starting in / (the root folder). Can I configure it to start in $HOME instead? e.g., looking for the equivalent of shortcut properties in ...
0
votes
1answer
32 views

Is it possible to extract multiple groups at once when fontifying with font-lock?

I'm trying to wrap my head around font-lock-keywords format, particularly MATCH-ANCHORED variant, but I don't see how would I re-use matches generated from one regexp. Below is my setup for ...
0
votes
1answer
105 views

How can I send a command to Emacs 24 from VBA in MS Office?

I want to invoke commands from within MS Office application which have a direct effect on my (open) Emacs application, for example do a search for the currently selected text in Emacs I wonder how ...
1
vote
0answers
37 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 ...
1
vote
1answer
45 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 ...
1
vote
0answers
48 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
2answers
116 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
110 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
0answers
108 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
304 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
144 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
156 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
121 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
56 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
51 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
158 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
88 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
118 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
105 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
70 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
155 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 ...
2
votes
1answer
350 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
49 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
71 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
2answers
178 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
572 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
123 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
59 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
57 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
34 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
140 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
72 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 ...