All Questions

14
votes
2answers
1k views

How can I add characters to an input method?

I often use the TeX input method to type Unicode characters like λ, which is quite handy. However, some of the characters I want to type are not supported like various subscripts (say ᵢ), script ...
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-...
3
votes
0answers
269 views

How to get sauron-org to work for org-mode events?

For some reason I can't get Sauron to see my org-mode events. I can see that the sauron-org module has started though. Is there something else I need to enable/turn on to get Sauron to see org-mode ...
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 ...
9
votes
2answers
586 views

How can I create a dired buffer listing all open files?

I have a mechanism for burning items to disc from a dired buffer. Unfortunately, the file's I've patched are strewn accross the file system. How can I create a dired buffer from all open files?
11
votes
1answer
555 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 ...
15
votes
1answer
2k views

How to indent items in LaTeX/AUCTeX itemize environments?

Q: how can I get "proper" indentation of LaTeX itemize environments in auctex? Here's where I'd like to be with an item in an itemize environment: \item line is indented two spaces relative to the ...
52
votes
4answers
3k views

Practical benefits of new advice system in Emacs 24.4

Emacs 24.4 comes with a new advice system. The NEWS file says: ** New package nadvice.el offers lighter-weight advice facilities. It is layered as: *** add-function/remove-function, which ...
11
votes
3answers
1k views

Customizing indentation in makefile mode?

In my makefiles, I prefer the following indentation for continuation lines: FILES:= \ file1.cpp \ file2.cpp \ fileYetAnother.cpp LIBS:= \ ...
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 ...
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" \ "...
2
votes
1answer
117 views

How to use keybindings containing @ in MacOS X?

I'm using Aquamacs 2.x in MacOS X 10.6. (I'm using the Command key as M and the Ctrl key as C.) WHen I try to use keybindings containing "@", it does not work, e. g. C-c @ C-t in outline-minor-mode. ...
4
votes
1answer
463 views

How do I use TAB instead of Enter for completion in ido-mode?

When I do C-x C-f .emacs.d/i TAB Emacs displays a new buffer which presents "Possible completions", which are in my case auto-save-list/, history and init.el. I would like to have it complete to just ....
12
votes
5answers
2k views

Recently opened files in ido-mode

I use ido-mode, but one thing I hate about it is that after C-x C-f I cannot use up/down keys to cycle through recently opened files, as it used to be for example with iswitchb. How can I set ido to ...
5
votes
2answers
816 views

How to stop mu4e from inserting line breaks?

When I write a long line while composing a mail in mu4e, the lines are truncated for viewing (toggle-truncate-lines), but as soon as I hit Enter fixed line breaks (column width seems to be 70 or ...
4
votes
3answers
528 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....
2
votes
3answers
444 views

Persistent effects on overwriting faces

Using Emacs 24.4 with projectile and helm I am trying to customize some faces of the grep results. ;; Helm face customization (M-x helm-colors) (set-face-underline-p 'helm-selection nil) (set-face-...
8
votes
2answers
125 views

Auto-inserting last used sub-/superscript values in math formulae

I use AUCTeX for type-setting mathematical texts. Often I have to type equations with sums, integrals etc. which all have the same sub- or superscripts. I'd like to autofill the current sub-/...
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?
5
votes
1answer
261 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 ...
4
votes
2answers
435 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.
2
votes
3answers
158 views

Convert regexp list so that each member has word boundaries

I have several lists with regexp matching categories of file extensions: (let* ( (txt-regexp '("txt" "md" "log" "org" "conf" "rtf")) (el-regexp '("el" "lisp")) (tex-regexp '("tex")) (...
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 "...
10
votes
1answer
512 views

How to know if emacs is running as a daemon?

I want to know if emacs is running as a daemon, so I can load some parts of my configuration according, I want to know this from within emacs.
1
vote
1answer
174 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 ...
9
votes
2answers
591 views

Temporary text in window location with no text to propertize/overlay?

Q: how do I temporarily show text in a window at screen locations with no text to propertize/overlay? I'm familiar with the basic idea behind text properties and overlays (see also this thread), have ...
4
votes
2answers
371 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 ...
24
votes
2answers
2k views

Reset custom variable to default value programmatically

Q: Using Elisp, how can I reset a variable to its default value without knowing what that value is? I tried to figure out how to do this by bringing up the Customize interface for a variable I set to ...
8
votes
2answers
149 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 ...
10
votes
1answer
249 views

How can I bookmark Info page to continue reading later?

How can I bookmark Info page to continue reading later ?
2
votes
2answers
2k views

Indentation after braces in C

I don't know what the formal name of it is (this being one of the reasons that I can't find how to achieve it). But, what I want is to make Emacs start the second bracket with the same amount of space ...
7
votes
1answer
927 views

How do I pronounce Emacs?

I struggle to pronounce many computer terms, and to this day still mispronounce latex in my head - it just sounds better rhyming with flex. How would I pronounce Emacs?
58
votes
6answers
22k views

How to maximize my Emacs frame on start-up?

Is there a way to maximize my window on start-up? Currently, I hit Control++Up on my keyboard but it is very bothersome to do that every time. I am using Emacs 24.4 on Ubuntu 12.04.
5
votes
1answer
247 views

Some warnings and unexpected indentation with SMIE

I'm trying SMIE to describe the Nix language. Unfortunately when I use it, I have the following problems: There are 4 messages saying: Warning (smie): token } is both closer and neither. Which I do ...
8
votes
2answers
176 views

Killed buffer still shown by an earlier Ctrl-x Ctrl-b

I found that a killed buffer is still shown by a buffer created earlier by C-x C-b. How can we get the up-to-date buffer list?
6
votes
2answers
593 views

Using 'create-image' with data, not a file

I am having trouble creating images with just data: (web-http-get (lambda (con hdr data) (setq nic-profile-img-data data)) :url "http://pbs.twimg.com/profile_images/494606908385288192/...
10
votes
1answer
3k views

How to remap Company's select next and select previous keys?

I don't like the default M-n and M-p keys for company-select-next and company-select-previous so I was wondering if it's possible to remap those to C-n and C-p without affecting the mappings when ...
3
votes
1answer
92 views

How does one define a widget of type editable-list with validation?

I create my widget with the following code: (widget-create 'editable-list :entry-format "%i %d %v" :value '("") '(editable-field ...
2
votes
1answer
166 views

Is it possible to alias an internal command?

Since I discovered multi-term, I use it exclusively over term or eshell. But, I'm lazy and would prefer to be able to simply type term to activate multi-term. Is this possible?
8
votes
1answer
104 views

How should comint-derived modes keep track of buffers and processes?

Having written a couple of custom comint-derived modes, I often find it tricky to decide how to keep track of buffers and processes: for instance, to associate different source buffers with different ...
3
votes
1answer
522 views

Override syntax highlighting with color of hex code.

From EmacsWiki: Hex Colour, it is explained how to get in-line syntax highlighting of hex code, and other formats of color. For instance with (defvar hexcolour-keywords '(("#[abcdef[:digit:]]\\{6\\}...
27
votes
2answers
4k views

Is it possible to use both MELPA and MELPA-stable at the same time?

I use melpa-stable as an additional package repository, but one of the packages I like to use (icicles) isn't available on melpa-stable. Is there any way to configure package.el to normally use melpa-...
5
votes
1answer
827 views

How can I get Cask or Pallet to automatically install packages on startup?

I manage packages in Emacs using Cask and Pallet. Yesterday I upgraded to Emacs 24.4; it went well enough, but all of a sudden all my packages were missing. Cask installs packages in separate ...
14
votes
5answers
747 views

How can I map over a vector and get a vector?

The only thing I've found that works is (eval `(vector ,@(mapcar #'1+ [1 2 3 4]))) => [2 3 4 5] but that seems far too complicated to be the 'right' way.
16
votes
1answer
2k views

How to know my buffer's visible/focused status?

I'm writing an extension that talks to an outside process, so it is a given to lower the amount of 'hey whats up' requests when my buffer isn't focused. So, what is the best way to recognize: When ...
10
votes
1answer
960 views

How to customize syntax highlight for just a given mode

I would like to change the syntax highlighting in my lua-mode.el without affecting other major modes. Just as an example, I would like "key words" like if, then, else to be in bold and blue typeface ...
21
votes
1answer
1k views

How to customize background color for some web pages opened with eww?

I just installed emacs 24.4 and I've started using eww. But one annoying thing is that when I visit google.com I get a grey background which makes text really hard to read for my theme. This is how ...
8
votes
1answer
1k views

Display errors and warnings in an org-mode code block

I would like to be able to report warnings and errors when evaluating a Python code block in an Org file. When a code block has Python syntax errors, Org helpfully pops them up in a separate ...
11
votes
2answers
2k views

Can I include a common code block in two different code blocks in Org mode?

I have an org-mode file containing a table of data and two Python code blocks to extract different summaries from it. I would like to share some common constants and functions between these two code ...
16
votes
1answer
787 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 ...

15 30 50 per page