All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
552 views

Interpretation of tabs in text copied from Emacs and pasted in other programs/editors

When you set Emacs to recognize 4 spaces as 1 tab, then copy text from an Emacs buffer to another program, will the other program see 4 spaces or interpret it as 1 tab (which may correspond to a ...
16
votes
1answer
406 views

Is there a 'local undo' extension for Emacs?

It happens quite often that I want to undo changes locally or line-wise. For example, when I change multiple lines in a source code and I want to revert only one of them, then I have to step through ...
13
votes
1answer
708 views

Select *Help* window buffer after C-h f

I do "C-h f" a lot for emacs lisp functions. I prefer to have the window displaying the Help buffer selected (right after C-h f) and then press "q" when im done to close the window. Is there a way to ...
17
votes
2answers
2k views

Difference between load-file and load

I went through the documentation of both the function but they don't seem to shed much information. What is the actual difference between them apart from the fact that load is a built-in function in C ...
1
vote
1answer
210 views

How to force evaluation of a statement in my `init` file?

TL;DR: How can I force evaluation of a setq statement at start-up so that imenu updates appropriately? (You can skip down to the second code-block below, if you want.) I love the concept of imenu (...
12
votes
2answers
162 views

Proper approach to providing external programs along with packages?

I maintain a number of elisp packages (e.g. codesearch, emacs-ycmd, traad) that would benefit from being able to install the external programs that they use, saving time and effort for some users. For ...
6
votes
1answer
403 views

Recursive load error in csharp mode on upgrading to 24.4

I'm on OSX 10.9.4 and I was previously running emacs 24.3 installed via brew. This morning I got around to asking brew to upgrade me to 24.4. Everything seemed to go smoothly, except csharp-mode no ...
2
votes
1answer
2k views

void-function when loading ido-mode in Emacs24

I'm using Emacs 24.4.1 from Debian unstable and have added the lines from question "How do I switch buffers quickly?". However this results in an error message and I found no way to resolve it. I can ...
4
votes
3answers
432 views

Only allow kill-ring-save if there is highlighted text

I would like to wrap kill-ring-save in order to only execute kill-ring-save if text has been highlighted - same as in most text editors. Sometimes I accidentally hit copy instead of paste and then my ...
15
votes
1answer
2k views

syntax highlighting in source blocks

I thought that org-mode highlighted source blocks with the relevant mode. So for example: #+BEGIN_SRC clojure (defn plus [a b] (+ a b)) #+END_SRC This would show up with the syntax highlighting ...
4
votes
1answer
244 views

Keyboard macro repeats indefinitely

I'm reading GNU Emacs Manual to learn how to use Emacs in its full power. I now I'm trying to make use of keyboard macros. It's fairly easy, but I cannot understand why the first defined macro repeats ...
4
votes
1answer
174 views

Semantic occur?

Is there a way to get an occur-style summary that contains all of the function definitions of the current file? Perhaps using semantic-mode? I'm particularly concerned about C. Emacs Lisp, Caml (...
1
vote
1answer
217 views

org-mode and reftex giving this error: reftex-using-biblatex-p: Stack overflow in regexp matcher

I'm trying to set upt org-mode and reftex-mode but I'm getting some troubles. Here is my init.el file: ;; ORG-MODE (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (setq org-agenda-files '("...
0
votes
2answers
57 views

`muse-publish-this-file` makes Emacs hang and use 95% of my RAM

I'm editing a large book in one file (78K according to Emacs; should I divide each chapter in files instead?), when I call muse-publish-this-file it makes Emacs hangs (to not respond, unless I press C-...
10
votes
2answers
354 views

Why don't major modes just inspect the faces?

When writing a major mode, it's often useful to know 'is point in a string?' 'is point in a comment?'. Most major modes seem to attempt to parse the programming language. For example: python-syntax-...
6
votes
1answer
320 views

What are the advantages of building Emacs from source?

I use precompiled Emacs binaries (24.3) right now. AFAIK, v24.4 is already available as binaries, so there is no incentive for me to compile Emacs myself to stay current. I'm thinking, however, ...
2
votes
1answer
82 views

Warning about modification of files which should be static

Some files in Emacs should not be modified, for example: an .el.gz library file which is expected to behave "properly" an external extension, which will be overwritten on update Anyway, there are ...
4
votes
1answer
434 views

Invoking “dired+”

This is superficially similar to a question I asked here but I think the answer might be different. I'm trying to use dired+ and highlight but I don't seem to be getting the full functionality. When ...
1
vote
1answer
115 views

projectile minor mode is enabled even though all projectile related is commented in init.el

I did install projectile from melpa and now want to give it try. So I fiddled together this lines to get projectile mode. (use-package projectile :config (setq projectile-enable-caching t) (...
8
votes
3answers
797 views

Highlighting text in open (displayed) buffers/windows — searching for text from one buffer in another

Right now, I have my Emacs frame vertically split, and am looking at two different buffers in the two windows. I'd like to go to a word in one buffer, hit some keys, and have the ocurrences of that ...
7
votes
3answers
626 views

Byte-compilation of a multi-file package: “the function is not known to be defined”

Imagine that I have the following files in my (ridiculous) package: File test1.el: ;;; test1.el --- ;;; Code: (defvar test-var1) (defun test-fun1 (test) nil) ...
10
votes
4answers
508 views

How to resume an INCOMPLETE keyboard macro recording?

Classic use-case: You start recording a macro: C-x ( You do some stuff, let's say hello. You run a command that throws an error, let's say C-g (e.g. you mistakenly run C-s and you have to cancel that ...
5
votes
1answer
379 views

What does a byte compiled Emacs file contains and how is it executed?

I didn't know byte compiled emacs files (.elc) were actually version-specific until Malabarba pointed that to me. So this made me ask what do those files actually contain and how does their ...
3
votes
2answers
453 views

Emacs keeps highlighting the word 'fix' in every context - how do I turn it off?

In pretty much every mode, whenever the word 'fix' occurs, whether its in a comment or not, it gets highlighted in a very visible way. I'm not sure what's causing this, and would like to turn it off. ...
1
vote
1answer
231 views

Invoking “Icicles”

I'm trying to get started using Icicles, but I'm wondering if ido is interfering with functionality. So far: I installed Icicles from the repo and added (require 'icicles) to init.el. I used M-x ...
10
votes
3answers
2k views

Best way to retrieve values in nested assoc-lists?

Suppose I've got an assoc-list like this: (setq x '((foo . ((bar . "llama") (baz . "monkey"))))) And I want the value at bar. I can do this: (assoc-default 'bar (assoc-default '...
2
votes
1answer
530 views

Calling the calc stack from babel: displaying percentages

Calc supports displaying results as percentages with c %. How can I make babel return this? I tried: #+BEGIN_SRC calc 1 2 '/ 'c% #+END_SRC But this just gives an error. I also tried with a space ...
0
votes
1answer
30 views

Scrolling seems to add an unwanted chunk into my kill ring

Anybody know why this may be occurring? Here is an outline of how I recreate the issue... I copy or kill something to my kill ring. I scroll up or down with the mouse. I then yank and get an ...
4
votes
3answers
545 views

Dumb indentation

I want to force Emacs to do (quasi-)dumb indentation à la Eclipse. By this I mean the following: If the point is at the beginning of a line and I press tab, force shift the line 2 spaces to the right....
4
votes
1answer
2k views

Haskell Interactive Mode Setup - cabal unrecognised command: repl

I'm trying to set up haskell-mode following this instructions [0] https://github.com/haskell/haskell-mode/wiki/Haskell-Interactive-Mode-Setup [1] http://tim.dysinger.net/posts/2014-02-18-haskell-...
5
votes
1answer
161 views

How to non-interactively dump list of open buffers, associated filenames and saved/unsaved state?

I'm trying to develop a git hook that warns me if any files that belong to a repo are unsaved in the editor. For that I need a list of open files/buffers and their state, so basically a non-...
3
votes
1answer
606 views

Modifying Java indentation style

I use Emacs for Android development and this has been bugging me lately. I'm trying to get the following indentation behaviour: submitBtn.setOnClickListener(new OnClickListener() { @Override ...
8
votes
2answers
150 views

How to detect keystrokes which don't edit the buffer?

What's the best way to detect keystrokes (e.g. via a hook) which don't edit the buffer? I mean things like arrow-keys for point motion, calls to beginning-of-buffer, etc. The reason for this is that ...
5
votes
1answer
270 views

Helm and custom commands

If I write a command that calls (interactive "f"), Emacs will prompt the user to select a file when the command is run interactively. With Helm enabled, this selection is done through Helm with no ...
6
votes
2answers
2k views

Simple project management---org-mode, or another tool?

I'm a beginning emacs and org-mode user interested in the mode for personal project management. For example, I have a database of photo images: 2014-10-steven-and-his-cats.jpg 2014-10-steven-author-...
0
votes
1answer
161 views

git-stage the current file-visiting buffer?

I've never really used vc but it looks like it only supports add or commit actions. I reckon magit must have some of the machinery to achieve this, but browsing its codebase didn't reveal anything ...
8
votes
1answer
3k views

How to navigate a JavaScript project?

I'm currently working on a JavaScript project using Backbone.js and I wonder how can I navigate between files, based on method and object definitions. For example, I keep references to some of my ...
27
votes
2answers
4k views

How can I hide/display LaTeX section just like org-mode does with headlines?

When editing org files, I find it extremely convenient how you can hide and display headlines and their content by just hitting TAB on the headline. For instance, consider the following buffer * ...
11
votes
1answer
569 views

Elisp reimplementations

Emacs implements an interpreter for elisp in C which serves as the de facto reference implementation. Are there any other implementations of elisp in other languages (particularly Javascript)? What ...
4
votes
2answers
437 views

apostrophe in org-babel export to latex and beamer

How can I get org-babel to properly render ' and not ’ when exporting to LaTeX and to Beamer? I didn't find any good solution yet, and I would like the code to be copy-pasteable.
5
votes
1answer
1k views

Why are double quotes not escaped in the replace-regexp command?

I have text like this: myvariable = ABCD, EFGH, IJKL, ~subsection1 MNOP, QRST, UVWX, YZ Which I want to transform to: myvariable = "ABCD," "EFGH,\n" \ "IJKL,\n" \ "~subsection1\n" \ "MNOP,\n" \ "...
4
votes
3answers
1k views

Helm color theme gets mixed results

I am using the Tomorrow-Eighties color theme from the color-theme-sanityinc-tomorrow package. Unfortunately when using Helm, not all of the correct colors seem to be applied. I've had an interaction ...
5
votes
1answer
3k views

How to use AUCTeX and outline-minor-mode together for folding? [duplicate]

I'd like to easily hide or show the text below individual headings in a large Latex document. I thought this should be possible with outline-minor-mode, however I can not get it to work. I can ...
4
votes
2answers
374 views

Greek characters in graphs produced by org-babel and gnuplot

I can generate plots using gnuplot source blocks with org-babel like the following: #+begin_src gnuplot :file plot.png plot x w l t "$\epsilon$ = 1", \ 1-x w l t "ε = 0.1" #+end_src which ...
8
votes
2answers
440 views

Why does my *vc-log* buffer start with “Summary:” in Emacs 24.4?

I just upgraded to Emacs 24.4 (from 24.3). Now, whenever I run vc-next-action on a modified file, the *vc-log* buffer that comes up starts with the word "Summary:" in log-edit-header face, followed ...
20
votes
1answer
2k views

How can I use eww as a renderer for mu4e?

Emacs 24.4 came with native eww browser. What is the proper way to use eww as a renderer for mu4e messages?
15
votes
1answer
472 views

How to use SLIME as a proxy between Common Lisp program and Emacs Lisp?

I'm looking into doing the following: I have a program written in Common Lisp, which I want to be able to communicate with Emacs. The program deals with natural language parsing, so the things I'd ...
16
votes
1answer
793 views

What are good tools for Emacs package development? [closed]

We already have a question about tools useful specifically for testing, but what about actually writing the code? Which packages do you find speed up your development? Which aids do you use to ...
17
votes
2answers
3k views

Using a different font for each major mode

Is it possible to set different fonts following the major mode? Say Inconsolata-12 in org-mode buffers and Symbola-12 in all remaining modes. Or at least, is it possible to do a (set-frame-font "...
1
vote
1answer
177 views

How do I change a key binding which also has its own prefix key?

I want to change a couple of key bindings for @wasamasa's eyebrowse package, because I'm on a laptop and the keys < and > aren't easy to access. The thing is, this package defines a custom prefix ...

15 30 50 per page