All Questions

5,813 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
24 votes
2 answers
3k views

How do I set up font fallback in a robust way?

TL;DR: What's a simple way to reliably say: use Consolas as the default font, FreeMono for the characters unsupported by Consolas, and Symbola for characters unsupported by both? Since my main ...
  • 3,884
16 votes
1 answer
610 views

Is there a plugin that does color HTML matching tags like rainbow delimiters?

I would like some plugin which colors html tags with a corresponding color based on which tag they match. For example <div> <p></p></div> <div> and </div> would ...
12 votes
0 answers
974 views

Edebug orgmode source code blocks with input variables

What is the standard method to debug emacs-lisp orgmode source code blocks with input variables as header arguments? I found the hacky solution to insert the following snipped in front of a source ...
  • 31.7k
11 votes
0 answers
2k views

Use helm-company as default for company autocompletion?

I want helm-company as the default selection method for company. Helm-company is meant to be invoked manually after company completion started. But I would really like to invoke helm automatically on ...
  • 3,371
11 votes
0 answers
844 views

How to immediately resize the minibuffer window?

Suppose that I have this function, that inserts some stuff into the minibuffer: (defun foobar () (interactive) (minibuffer-with-setup-hook (lambda () (let ((resize-mini-windows t)) ...
  • 13.8k
10 votes
2 answers
970 views

orgmode line wrap except table

In orgmode, how can I get below line wrap behavior: for text (other than table), I wish line wrapped. for table, I do not wish it's wrapped. I can add below line in init.el (global-visual-line-mode ...
  • 1,580
10 votes
0 answers
302 views

Cycle through multiple cursors to enter different text at each point?

When multiple cursors has marked multiple points in a buffer you can use C-v (mc/cycle-forward) to cycle through and look through all cursors while typing for all cursors. I'm wondering how to enter ...
  • 7,169
10 votes
0 answers
226 views

How to investigate "color bleeding"?

I frequently have color-bleed issues in emacs, most often with AUCTeX: all of a sudden and for no apparent reason, the line I'm writing will be fontified as math. First things first: no, I do not ...
  • 4,163
10 votes
1 answer
247 views

Custom indentation for specific lines?

I currently try to figure out, how I can handle some lines specifically without messing up the indentation of the rest of the buffer. Consider the following function MyFunc as an example: void MyFunc(...
  • 101
10 votes
0 answers
175 views

Significance arithmetic in calc

I would like to perform significance arithmetic in calc-mode. For example, I want 5000 to have one significant figure, and 5.0e3 to have two significant figures. Calculations should preserve ...
9 votes
1 answer
316 views

indent cl-loop to respect `if else` statements

I have a hard time writing and reading cl-loops with they way they're indented by default as I can't easily tell what the control flow is: (cl-loop for x below 10 if (cl-oddp x) ...
  • 1,363
9 votes
1 answer
952 views

How to make Geiser send the output to REPL buffer instead of echo area?

I am running Emacs25 with Geiser (latest version from MELPA, 20180128.1821) and Guile (version 2.2, Debian package). So far it works fine, but when I evaluate a sexp, it will print the result to Emacs'...
  • 233
9 votes
0 answers
2k views

Display all local variables within a edebug session

When using edebug one can get a local variable by command describe-variable (C-h v), but are there any ways to display all local variables? For example in Python you can call locals() in a pdb ...
  • 918
9 votes
1 answer
1k views

Issue with nnmaildir in gnus

I've been trying to get nnmaildir to work along with mbsync (which syncs IMAP and Maildir mailboxes) and I just cannot get it to work with gnus. With the following select method: (nnmaildir "calgary"...
  • 101
9 votes
0 answers
926 views

gud: highlight breakpoints with custom debugger

I use go-dlv to debug Go programs. This package is very simple and relies on standard gud functionality (https://github.com/benma/go-dlv.el/blob/master/go-dlv.el) One thing that I found missing is ...
  • 453
9 votes
1 answer
3k views

Coding System utf-8 on Mac - Which one and why as default?

I want to change my default encoding system from non defined to UTF-8 (I think that would be useful). Now I have seen many different UTF-8 coding systems: mule-utf-8 mule-utf-8-dos mule-utf-8-...
  • 897
9 votes
2 answers
2k views

How to better align tags in Org Mode using variable-width font

I prefer using variable-width fonts in Emacs whenever I can. That said, Org Mode tags are horribly aligned when headings use variable-width fonts, even if the tags themselves use fixed-width fonts. Is ...
  • 512
9 votes
1 answer
844 views

Is it possible to have word-wrap as standard but truncate some lines in a buffer at the same time?

I'm working with large LaTeX tables in AucTEX and it would be helpful to display them in truncated lines, like here: The red marks are the "&" characters which separate the columns of the table. ...
8 votes
0 answers
456 views

Emacs Mode For Editing Guitar/Bass Tablature?

I have been looking for a while, and have not been able to find an Emacs major mode for editing Guitar/Bass tablature.
8 votes
0 answers
1k views

show output from python-shell-send-region

Using python.el and ipython.exe (from Miniconda3), I'd like to highlight a portion of code and execute it in the associated inferior python buffer. Example: #!/usr/bin/python3 myvar = 100+200 ...
  • 233
8 votes
0 answers
307 views

Can body-only exports be performed by default?

I have an org file: #+TITLE: Hello! Hello world! I can perform a "body-only" export of this file to html by issuing C-c C-e C-b h h. Here, the C-b keystroke toggles the "body-only" variable from ...
8 votes
0 answers
456 views

How to get Emacs to use the Mac system-level spell correction capabilities?

Mac OSX has autocorrect for spelling that: Doesn't require pressing any buttons to make a retroactive change. Doesn't require manually inputting these corrections/abbrevs. I want to get this same ...
  • 181
8 votes
0 answers
534 views

org-mode ODT export template

I would like to export org file to ODT. Is there any nice ready to use ODT template that can be used for exported documents? Default template is not good looking. I had the same problem with html ...
  • 213
8 votes
0 answers
555 views

How can I force display-buffer to use one specific frame?

My daily workflow uses multiple frames, and I have a frame that I want to dedicate to ERC buffers. I've used set-frame-parameter to give the frame the name *ERC*. I want display-buffer to always ...
8 votes
0 answers
1k views

error in process filter: could not create connection to marmalade-repo.org:433

When I run package-install in windows with Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 I got error error in process filter: could not create connection to marmalade-repo.org:433 According ...
  • 383
8 votes
0 answers
515 views

How to indicate the currently clocked-in task?

I'm using org-mode's clocking functions to track the hours I spend on projects. Since my main org file is rather large and I scroll through it a lot, it would be great to have a visual cue of the task ...
  • 1,109
8 votes
1 answer
227 views

Is it possible to make calc autocomplete units?

Is there some extension that can make calc autocomplete units while value entered as algebraic input? e.g. ' 1 kn<tab> should be completed to "1 knot".
8 votes
0 answers
2k views

Move item from org archive back into org agenda file?

Q: how does one move a project out of the org archive and back into its original spot in the agenda file? org-mode has facilities to archive projects. Every once in a while, however, I need to ...
  • 32.1k
8 votes
0 answers
7k views

Restart emacs daemon from within emacs

Very much like Restart emacs from within emacs, except I'd like to do this for an emacs daemon and client. Specifically, I'm interested in the terminal client, but of course being able to restart ...
  • 10.2k
8 votes
0 answers
158 views

Make browse-url follow URLs with line breaks?

How can I make browse-url follow URLs with line breaks? Example from RFC 1738: Yes, Jim, I found it under <URL:ftp://info.cern.ch/pub/www/doc; type=d> but you can probably pick it up from <...
  • 999
8 votes
1 answer
901 views

How to get org-mode fully support Arabic language for export?

My intention is to write Arabic document using org-mode. Please consider the following MWE, given that my configuration in init.el has below code to enable writing of Arabic script from right to left (...
  • 1,759
7 votes
0 answers
429 views

xref unsuccessful in python buffers: "no definition found"

The command xref-find-definitions is no longer working for me in Python buffers (with elpy-mode enabled. Its companions, such as xref-find-references, are also not working in Python buffers. ...
7 votes
0 answers
3k views

How to debug C++ (dap-mode + LLDB or GDB)

I want to use dap-mode to debug a C++ code. Until now I followed instructions dap-mode (LLDB) and lldb-vscode. I further enabled the mode and UI via (dap-mode 1) (dap-ui-mode 1) When I execute dap-...
  • 223
7 votes
0 answers
710 views

latex inside table using table.el in org mode

I am trying to achieve multicolumn cells in org-mode tables like in Multicolumn cells in org-mode tables, but with Latex inside the cells. * Minimal Example +------------+-----------+-------------...
7 votes
0 answers
2k views

Tramp freezes Emacs with OpenSSH on Windows

I just installed Emacs on my Windows machine for remote file editing using Tramp. However, I noticed than whenever I try to connect to a remote server (C-x C-f /ssh:home:), Tramp just displays Opening ...
7 votes
0 answers
800 views

How to archive an org-mode subtree along with its parent headlines

Let me start out by saying I've seen various attempts to address questions similar to mine, but none of them handle the things I'm looking for. Here is an example of what I'm looking for: Say I ...
  • 778
7 votes
0 answers
1k views

Hierarchical org refile support with ivy

When I enable ivy-mode in an org buffer and C-c C-w for refile, all headlines are presented as refile targets. So far so good. I relied on the org default setting (org-outline-path-complete-in-steps '...
  • 203
7 votes
0 answers
164 views

Saving a .tar.gpg file

Saving a .tar file in Emacs works as expected. Saving a .gpg file also works as expected. However, when I save a .tar.gpg file, instead of saving an encrypted form of the actual tar file, it instead ...
7 votes
0 answers
103 views

What was syntax-begin-function obsoleted in favour of?

Since Emacs 25.1, syntax-begin-function is obsolete: syntax-begin-function is a variable defined in ‘syntax.el’. Its value is nil This variable is obsolete since 25.1. This variable may be risky ...
7 votes
0 answers
545 views

how to expand org-mode macros in HTML blocks in export to HTML?

I'd like to use org-mode macro replacement to expand macros inside HTML blocks in org-mode export to HTML. I'd like this... #+MACRO: event-url bar #+HTML_HEAD: <meta property="og:url" content="...
7 votes
0 answers
434 views

How to properly indent application in scheme-mode?

The scheme-mode indents application in this way: (define (x) (x 1 2)) But when the function to apply is the result of another application scheme-mode indents the code this way: (define (f) ...
  • 1,266
7 votes
0 answers
239 views

How to let `recentf` not to remember real path when there's a symbolic link?

Since my .emacs.d is a symbolic link of ~/dotfile/dot/.emacs.d, recentf keeps duplicated thing like /Users/user/.emacs.d/init/init-editor.el /Users/user/dotfile/dot/.emacs.d/init/init-editor.el ...
7 votes
0 answers
654 views

Org-mode inline .eps images display error. (.eps created by AI ok, .eps created by matplotlib no)

As I basically use Org to take note and export LaTeX files, I find displaying eps files as inline image to be important for me.I have my emacs compiled with ImageMagick support, and added the ...
  • 131
7 votes
0 answers
486 views

Symbol menu in auctex math mode

in AucTex math mode several symbold are already defined. Fom latex.el: (defconst LaTeX-math-default '((?a "alpha" "Greek Lowercase" 945) ;; #X03B1 (?b "beta" "Greek Lowercase" 946) ;; #X03B2 (?g "...
7 votes
0 answers
98 views

Ediff location pane

Is there a way to create something similar to the location pane from win merge in ediff? Not having this is about the only reason I use win merged instead of ediff.
  • 171
7 votes
1 answer
2k views

Unset inherited face attribute

Suppose I want the face helm-match to have an unset foreground. Unfortunately, helm-match inherits from match so, if I try to unset the foreground normally: (set-face-foreground 'helm-match nil) The ...
  • 10.2k
7 votes
0 answers
425 views

Emacs org-mode, agenda view, discover overlapping tasks

If I have following scheduled items in my org file: ** meeting a SCHEDULED: <2015-11-12 Thu 21:00-23:00> ** meeting b SCHEDULED: <2015-11-12 Thu 22:00-23:00> which generates ...
7 votes
0 answers
2k views

"Creating pipe: too many open files" error when running org-publish on large project

I have an org project that has many .org files (more than 300). When I invoke org-publish in Emacs, after a while it aborts and shows: ... ... Publishing file e:/git/blog.site.src/src/org/life/day-...
  • 91
7 votes
2 answers
1k views

EMMS doesn't seem to see anything from MPD

I've set up MPD, and it's definitely running and indexing everything correctly. I followed the instructions here to set up EMMS to work with MPD, and after running M-x emms-cache-set-from-mpd-all, it ...
  • 425
7 votes
0 answers
1k views

How do I parse a simple grammar and obtain a syntax tree in Emacs lisp?

How can I construct a parse tree from a string and a simple grammar? Semantic seems very tricky, and SMIE does not seem to produce a parse tree. Here's an example, assuming a language that looks like ...
  • 3,884

15 30 50 per page
1
2 3 4 5
117