All Questions

1
vote
1answer
18 views

how to debug frame updating in emacs [on hold]

I've noticed that the more frames i have open the slower any one frame becomes. This is a big problem over an exported X session. Ive noticed that compiling with some X-toolkits (GTK in particualar) ...
0
votes
1answer
42 views

Org mode export with R failing

I have an org file with R code in it. When I attempt to export to html or pdf I get an error: For example if my file was: #+begin_src R :exports code square <- function(x) { x * x } square(1:...
0
votes
1answer
17 views

Set tangle-mode 444 for all source blocks in buffer

How can I tangle all source blocks write protected? The first line of this example is ignored instead of being applied to all blocks as expected: #+PROPERTY: header-args:conf :comments link :...
1
vote
0answers
12 views

Can't run Windows 10 Bash with ansi-term

I've got this error, when running M-x ansi-term C:/Windows/System32/bash.exe RET Spawning child process: invalid argument after running M-x debug-on-entry RET start-process RET when running M-x ...
0
votes
0answers
18 views

Emacs flashes when changing buffer with `ido-switch-buffer`

When I change buffer via ido-switch-buffer and enter a python buffer my entire Emacs flashes visually for a second. If I handle other files the same way, it does not. What can be the reason for that? ...
0
votes
1answer
39 views

What is the status of dropdown-list package? [on hold]

What is the state of the dropdown-list package? I'm trying to install it to use with YASnippet, but it down not appear to be available on (m)elpa. Has it been superceded/deprecated?
0
votes
0answers
16 views

Any package for accessing Google spelling/suggestion API?

Google spelling suggestion/correction is quite useful to me, e.g., see the screenshot in this question. Is there any Emacs package / function to call the API for us?
0
votes
0answers
13 views

Insert weekday to the diary date format

The format of diary is Mar 18, 2019 This is my diary I want to append day of the week to it. the color of Monday does not fit to the date, Upon checking the documentation, there is no such ...
0
votes
0answers
19 views

Monthly date tree

I'd like to use datetree with month (alternatively week) granularity. Currently the datetree looks like that: * 2019 ** 2019-03 March *** 2019-03-17 Sunday **** TODO Weekly review I'd like to drop ...
0
votes
0answers
15 views

Extending ido-find-file to call deadgrep produces minubuffer error

I'm trying to add a key binding to ido-find-file, so that it calls deadgrep from the current directory. Similar to how pressing C-d from ido-find-file calls dired. The problem is that both deadgrep ...
3
votes
1answer
27 views

How can I identify all changes to match-data?

I have a sporadic error when running query-replace: Args out of range: #<buffer lib.rs>, 0, 1 There are similar questions: Match data clobbered by buffer modification hooks (RegEx-)Replace: ...
0
votes
2answers
49 views

How to create a .emacs.d repository [closed]

I am trying to create a github repo of my .emacs.d/ for a group of students. Basically, I have two choices: A) simply take a "git snapshot" of my entire ~/.emacs.d/ including all the packages in elpa/,...
0
votes
1answer
20 views

How to make `company-go` suggest completions from my own code?

My emacs go-lang setup is more or less the same as https://lupan.pl/dotemacs/. I get suggestions from company-go for standard library (like fmt for example), but I don't get any suggestions from my ...
2
votes
1answer
81 views

Highlight missing double-space between sentences?

For a while, I've been using sentence-end-double-space: nil. Now I want to get back into the habit of using two spaces to separate sentences. It is the convention for GNU documentation, and it ...
2
votes
1answer
36 views

How to write a list literal with conditional items? [duplicate]

Given a list literal '(1 2 3) is it possible to conditionally include parts of the list? eg: '(1 2 3 (when thing-is-true '(10 11 12))) 4 5 6) Which would result in '(1 2 3 4 5 6) or '(1 2 3 ...
0
votes
0answers
18 views

Electric pair mode's delete adjacent pairs functionality not working in Slime REPL

Part of Emacs's electric-pair-mode functionality (controlled by a variable called electric-pair-delete-adjacent-pairs) is that when the point is between an empty set of delimiters and you delete the ...
2
votes
1answer
44 views

mu4e: open PDFs with pdf-tools

I've just set up mu4e, and have noticed that when opening an attachment with the o key it will open with MuPDF. Pressing A w to open-with doesen't seem to help either, since it prompts for an external ...
1
vote
1answer
38 views

use euro symbol (or any symbol) for emacs keybinding

I set up this duplicate line function: https://kundeveloper.com/blog/duplicate-line/ and bound it to the euro symbol like this: (global-set-key (kbd "M-€") 'duplicate-line) And it worked (for a ...
0
votes
1answer
31 views

Sort agenda items by link's text and not link's url

I use alpha-up as the org-agenda-sorting-strategy. I have many hyperlinks in my task titles. And these items seem to be sorted by the url first (as a hyperlink is [[url][title]]. How do I change this ...
0
votes
1answer
23 views

macro execution with i-search fails under Linux and succeeds under windows?

Imagine you've got file with FirstName|LastName| like this : John|toto| Hanz|titi| and want to put the first names at the end of the lines (just an stupid exemple). You may use Macro Recordind for ...
1
vote
2answers
28 views

Getting electric indent behaviour for added chars to “electric-indent-chars”

I am trying to get electric indent behaviour in bazel BUILD files. These are essentially python files, although the structure is extremely simple. Let me give you an example: cc_binary( name = "...
0
votes
0answers
12 views

org-mode/babel and zsh: Getting shell sessions to work

I've been trying to get shell code blocks with sessions to work, but not entirely succeeding. My setup: emacs 26.1 (spacemacs) org-mode 9.2.2 default shell: zsh 5.7.1 Everything seems to work fine ...
1
vote
2answers
54 views

Find out duplicate headings

In an org tree consisting of hundreds of headings, how do I find out if there are any that are duplicates? So, for instance, in the tree below, * Heading 1 ** some ** other ** headings ** some I ...
0
votes
1answer
11 views

flycheck “function is not known to be defined” warning after conditional definition

I was running into a flycheck warning about a function which may not be defined. Since the function is a small optional dependency, I am inlining it in case the package that provides cannot be loaded....
1
vote
2answers
29 views

What is the default location of Info files?

I am looking for "An Introduction to Programming in Emacs Lisp", by Bob Chassell. I can find two Info files on my Spacemacs: SPC SPC emacs-index-search SPC SPC elisp-index-search Does Spacemacs ...
1
vote
1answer
32 views

Make query-replace skip certain matches

Lets say I have these strings: "foo", "fooo" and "fo". And this line of code: (query-replace-regexp "\\<fo+\\>" "foo" nil (point-min) (point-max)) I'd like to skip the query-replacement for ...
0
votes
2answers
55 views

Melpa packages aren't being added

I have this in my init.el (require 'package) (setq package-enable-at-startup nil) ;;; Remove SC if you are not using sunrise commander and org if you like outdated packages (setq package-archives '((...
0
votes
0answers
28 views

custom-theme-set-faces does not work in emacs 27

I have some custom theme settings like (package-initialize) (load-theme 'leuven t) (custom-theme-set-faces 'leuven '(Man-overstrike ((t (:foreground "red3" :bold t))) t) '(Man-underline ((t (...
4
votes
3answers
70 views

Search and replace TeX \over with LaTeX \frac

I have a source file that was originally coded in TeX (well, this is actually a conTeXt file). A fraction like 1/(2/x^2) is coded as {1 \over {2 \over x^2}}. I'd like to convert to LaTeX syntax, that ...
0
votes
0answers
24 views

adding link (url) to message when writing email with mu4e

I recently started to use mu4e and maybe this is quite obvious, but how can I add an url with description to a message using mu4e? Is there something like [[url][description]] as in org-mode?
2
votes
1answer
19 views

Add expressions to LaTeX-electric-left-right-brace

I would want to "electrically" insert | or \right| when typing | or \left| in AucTeX and can't quite figure out how to add characters to AucTex-electric. A list of already defined completions can be ...
1
vote
1answer
37 views

LISP command won't work in init.el but works in *scratch*

I've executed the following lines in my scratch buffer (require 'expand-region) (global-set-key (kbd "C-=") 'er/expand-region) and everything worked without any problems, but if I add those same ...
1
vote
0answers
23 views

messages buffer is spammed with tramp

I am connecting regularly to servers via tramp. Sometimes everything works fine but often times my messages buffer gets spammed full of Tramp: Waiting for prompts from remote shell...done Tramp: ...
2
votes
2answers
51 views

Unable to install ESS package

I want to install ESS. I initialised the package manager with (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) (package-...
0
votes
1answer
45 views

Line numbers break scroll margin

I'm trying to set a scroll margin to emacs with the scroll-margin variable, but I've noticed that when you do that and you have display-line-numbers-mode enabled, the scrolling doesn't work properly ...
0
votes
1answer
36 views

Cannot open load file: Not a directory, notmuch [on hold]

Does anyone see what's wrong in my attempt to run notmuch in emacs? My attempt to run notmuch helm-M-x notmuch: Cannot open load file: Not a directory, notmuch My .spacemacs (autoload 'notmuch "...
0
votes
0answers
31 views

emacs org src output with accented characters

When I perform #+BEGIN_SRC sql coding: utf-8-with-signature :results list :var did='2019-03-10' cid=77 select t.titre from titres t inner join selections s on s.tid=t.tid where s.did="$did" and s....
1
vote
0answers
27 views

Looking for something like cl-applicable-method-p

I am looking for something that could be used like this: (when (cl-applicable-method-p 'foo "arg") ...) I vaguely remember that I have seen that once and that it came with a comment saying that one ...
2
votes
0answers
19 views

Letting evil >> increment org level

In evil mode, >> increments the indentation level of the current line. It does so at an org heading too, even though it would be more appropriate there if it would increase the org level (the ...
1
vote
0answers
11 views

Yasnippets for active web-mode engine

Say I have a snippets folder: snippets/web-mode/ ├── django │   ├── else │   ├── for │   └── if └── erb ├── else ├── for └── if Both engines have different syntax ({% %} and {{ }} vs <...
0
votes
0answers
15 views

Emacsclient uses new instance, weird font

When I open Emacs normally (using runemacs.exe), everything appears fine, including the font. However, when I try opening a file in Emacs using the client, while getting the client to start the server ...
0
votes
0answers
9 views

Org export to reveal.js using mathjax extensions

Similarly to this question, I was wondering how we can tell the reveal exporter to use MathJax extensions? Specifically, I would like to be able to use the 'physics' extension listed here and if ...
2
votes
1answer
20 views

How to replace a digit by a letter?

I want to replace some digits by letters such that 1 ---> a 2 ---> b ... In emacs I have tried the following replacement: M-x query-replace-regexp RET \([0-9]+\) RET \,(string (+ ?a \#1)) RET ...
0
votes
0answers
17 views

Ctrl-g will stop Emacs(terminal) and send it to background, ending with core-dump

I'm using Ubuntu server without GUI(ssh into the server), so I use Emacs in terminal, but since the first day I use it, Ctrl-g will stop Emacs and send it to background multiple times one day, it is ...
0
votes
1answer
41 views

Saving searches in Customize Group in Emacs

If I type M-x customize in Emacs I am taken to customize-group for the Emacs group. At the top of the screen is a search entry dialogue box where I would normally search for a given string. Is there a ...
0
votes
1answer
39 views

Regexps: 2 strings without a character in between; 2 chars w/o a string in between - Stack overflow in regexp mapper

I am trying to search through some babyl files for errors. The files are email messages that appear between ^L and ^_ (Control-L and Control-_), with a special string "\*\*\* EOOH \*\*\*" in between, ...
0
votes
2answers
34 views

How to enable the breaking of code blocks in a PDF?

As shown here, Control's code (and the code of the sections after it) are on subsequent pages. I want the code to be shown directly in the same subheading. My subheadings look like this: *** ~Code ...
1
vote
1answer
12 views

right click for menu with choices (to change font size)?

I am using emacs 26.1 under macos. when I right-click with the mouse, emacs seems to want to select the region. alas, I would prefer to see a popup menu where I can select a few choices that I would ...
0
votes
0answers
18 views

Display #+INCLUDE File Contents in Github README.org?

I learned from How to embed external file contents in org file? about including contents from another file into the org file. I tried that for my README.org. My code in org file looked like this: #+...
2
votes
1answer
27 views

Add multiple predicates to isearch-filter-predicate

I wrote a set of predicates to filter matches in my ìsearch-* and query-replace* routines. I also wrote a macro to bind the isearch-filter-predicate variable to multiple predicates: (defmacro with-...

15 30 50 per page