# All Questions

16,089 questions
5 views

### ELPA list is missing markdown-mode according to list-packages

I'm trying to install markdown-mode using instructions on https://jblevins.org/projects/markdown-mode/, according to which I put into my init.el file (require 'package) (add-to-list 'package-archives ...
10 views

Have recently upgraded to Ubuntu 18.04 which required an emacs reinstall of version 24 Now I've noticed that my symmetrically encrypted org mode file (file.org.gpg) no longer requires me to enter the ...
19 views

### How do I get byte-compilation warnings about undefined variables?

The following code works fine with M-x eval-buffer, and byte-compiles without any warnings. (eval-when-compile (defconst demo-one 1)) (defvar demo-some-var (foo bar ,demo-one)) However, if I ...
16 views

### org-insert-link sometimes produces “wrong type argument: stringp, nil” after prolonged use of emacs

It usually happens after a couple of days of use that C-c C-l / org-insert-link inside .org files does not allow me to insert new links anymore. What I want to do is interactively insert link ...
19 views

### How can I get flush left text in org-indent-mode?

I open an org file in emacs and it displays thus: I enable word wrap with M-x visual-line-mode and get: But I prefer the extra indenting of headlines provided by org indent mode, so then do M-x org-...
12 views

### Outline minor mode + mouse

XEmacs had outl-mouse that used outline-minor-mode plus a few pixmaps and mouse keybindings to let old lazy guys to hide and show (in my use case) sections and subsections etc of my AUCTeX buffers, ...
233 views

### How to modify a string without altering its text properties

If I propertize a string and save it to a variable, how can I change the string within that variable without altering its text properties? For example: (setq myvar (propertize "testing" ...
22 views

Is there a way of calling (end-of-buffer) that excludes trailing empty lines?
31 views

### Directed Acyclic Graphs in Org mode, and Cloned Nodes

By default, Org-mode headers form trees. That is, every header can have an arbitrary number of sub-tasks, and this relationship is recursive to an arbitrary depth. However, a task in practice can be a ...
27 views

### How Do I Create a Popup Window?

I would like to create a (read-only) popup window with some text in it, such that the user can close it by pressing 'q'. You know - the kind you see when you try compiling and get errors. Any ...
21 views

### Use Helm for Org Refile Completion

I want to use helm for org-refile completion when determining which heading to refile under. Here are some excerpts from my initialization script. (setq org-refile-targets '(("~/Documents/GTD/Gtd....
10 views

### Org-mode tell paragraph position in subtree

Is there a quick way to show where a paragraph is sitting in the document structure hierarchy? * Chapter 1 ... * Chapter 5 ** Section 4 ... paragraph X I would like to tell that paragraph X is ...
29 views

### org-mode numbered list across headings

I have a list of items. * Heading 1 1. Item 2. Item * Heading 2 1. Item 2. Item 3. Item Is there an easy way to make the numbers run across the headings like this? * Heading 1 1. Item 2. Item * ...
59 views

### How can I quit from multiple-cursor mode by ESC

I want to bind ESC to quit from multiple-cursor mode. This code doesn't work: (define-key mc/keymap (kbd "<ESC>") 'mc/keyboard-quit) How can I do it?
22 views

### How to use recover-session and dired-omit-mode?

I have enabled dired-omit-mode globally with (add-hook 'dired-mode-hook #'dired-omit-mode). When using recover-session, I don't see any files. How to fix this? Creating a .dir-locals.el containing ((...
13 views

### After setting bookmark: Wrong type argument: listp, "~/.spacemacs

So I did just M-x bookmark-save in my original .spacemacs file, which lead to the case that when I booted Spacemacs, I get the following error: Upgrading bookmark format from 0 to 1... mapcar: Wrong ...
12 views

### Synchronised scrolling in Evil mode

Is it possible to do synchronized scrolling of two windows in Evil mode, similar to what :set scrollbind does in Vim? sroll-all-mode doesn't quite achieve this. For example, it doesn't scroll on G or ...
31 views

### Any differences between M-x command and (call-interactively #'command)?

Q: are there any differences between M-x command and (call-interactively #'command)? I have an obscure bug I'm trying to hunt down, and can't even begin to think of how to do it. the summary version ...
23 views

### How to use a org-capture template expansion several times in a captured note

I am trying to create a org-capture template that re-uses some text given with the ‘%^{PROMPT}’ expansion along several points of the created note. I have looked in this link and in stack overflow ...
16 views

### Align statement breaks on rhs with equal sign

Is there a way to have rhs statement breaks align with the equal sign on the lhs line? e.g. some_value = a * b + c / some_other_value * x; becoming some_value = a * b + c / ...
13 views

### Custom indentation for macros in C mode

I'm working in a codebase with an extensive use of function macros and I'm having some difficulty finding the correct way to set indentations with them. Specifically, we pass a lot of statement lists {...
49 views

### How replace either of two words using a regexp to find them?

Text How are you? I'm just fine. I need to add some suffix to the next words: are and fine. I try this: $$are$$|$$fine$$ but it doesn't help.
20 views

### Mapping new command involving <escape> clear all predefined <escape> commands

I have the command fill-paragraph mapped to key <escape> q, it is mapped by default in emacs. Now I want to map the opposite command, unfill-paragraph, to key <escape> p. However, when ...
14 views

### Speedbar opens a normal text buffer, not dired like

I'm trying to use Speed bar when coding C++. My problem is, when I type M-x speedbar it opens an already opened code file instead. Here you can see the effect:
14 views

### Missing color support (for exa) in eshell

I just started using eshell. But the color support for some commands seems to be missing. For example I like to use the command exa, because of its nice colors. But in eshell it is all black.
15 views

### Org-ref not communicating with Tex-live?

Org-ref cannot tell that I have biblatex-caspervector installed. Is this because of some packages that I missed?
28 views

### org-mode internal link works only in some cases

I have an .org document with the following structure. * Headline 1 This is some text * Headline 2 :Custom_id: h2 This is heading number two ** Sub heading 1 <<target>> ** Sub heading ...
34 views

### Is it possible to apply a function to every region between two “marker” lines?

I have a .tex file that looks something like this: \$ cat foo.tex \begin{document} \begin{question} lots of multiline text with several paragraphs of information \end{question} other text \begin{...
19 views

### mark-whole-buffer followed by kill-ring-save not working correctly

I'm using Emacs 26.1 on MacOS. Instead of copying the entire buffer I get a warning: Saved text until "text where is stopped saving with whitespace seemingly to the end of the buffer " I'm ...
29 views

### How to enable the superword minor mode globally?

I am just wondering how to enable the superword-mode globally? I tried to enable it following the answers found here: How to enable ido-mode forever? , using: (require 'superword-mode) (...
42 views

### How to change window splitting behavior in Magit?

emacs: 26.2 spacemacs: develop (19c429e) magit: 20190609.1424 Some time ago (e.g. 20190222.1746), magit's window management used to be different from how it currently is. For example, magit-status ...
11 views

### Org Agenda is looking for agenda file names inside of my todo file

When I try to open a org-agenda view, I am prompted with emacs claiming that the first line of my todo list is not a valid file, with options to remove it from the agenda list, or abort. Removing it ...
9 views

### cmake-ide in projects with only make

What are my options to mimic cmake-ide in the projects that are not built with CMake? The features that I want the most are find-definition and autocomplete. For the compilation related features, ...
21 views

### Org-Mode not exporting all child subheading

While exporting following sample org file content to html, final output skips headings from 3rd depth in table of content. After reading org documentation, and forum questions, I tried following, ...
35 views

### Huge buggy padding in line-number buffer

A picture: As you can see there is a huge waste of space on the left side of the line number section. When I increase the font size the padding even increases and does not decrease when I decrease ...
19 views

### How to go to matching pattern after org-occur?

After typing C-c / / and a regex, org shows a sparse tree containing matches of the pattern. How do I move point through these matches, in a way similar to C-s?
17 views

### BibTeX Line Breaks in fields

I'd like to have linebreaks within fields of a BibTeX entry that are preserved even after I format the entry with C-q. Currently, what happens in my BibTeX buffer is this. I produce an entry with a ...
26 views

### org-ref “Unbalanced parentheses”, 20306, 18248 error

I am new to org-mode and I am learning to use it to replace markdown for academic writing. M-x org-ref gave me this error: org-ref "Unbalanced parentheses", 20306, 18248 error What should I do ...
14 views

### Evil: How to add keybinding for changing buffers?

With Evil mode, :bn shows the next buffer, and :bp shows the previous buffer. I wish to define a custom keybinding where <Space>n shows the next buffer, and <Space>p shows the previous ...
15 views

### Fontconfig warning when start emacs [on hold]

Upon invoking emacs, it report enormous font errors Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules" Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown ...
19 views

### Wrap a block of html with one or multiple tags

Often my point is at a paragraph <p>The quick brown fox jumped over the fence</p> <br> Example and I want to wrap it like this <div class="row"> <div class="columns">...
24 views

### Can Org-mode link to a Babel block?

I would like to have a link that runs a Babel source-code block. Does Org-mode support running something from the library of babel in a link, or a source block via a file+blockname reference? A ...
21 views

### How do I keep special modes from overriding my keybindings?

I usually have multiple windows open and switch between them often, so I put this in my init file: (global-set-key (kbd "C-o") 'other-window) ; Save a keystroke when switching windows (global-set-key ...
27 views

### vc-root-dir` is not a valid command name

Trying to use the vc-root-dir function on Emacs gives the error message vc-root-dir is not a valid command name On inspecting vc.elc as found by locate-library the function appears to exist as a ...
24 views

### How to chain isearch-forward-symbol-at-point and query-replace-regexp into a single keybinding?

I'm looking to create a keybinding that will perform the following shortcut: call isearch-forward-symbol-at-point call query-replace-regexp It's basically a shortcut for the following key combo: M-s ...
70 views

### What happens if I have different versions of Emacs using the same directory

Currently I have two versions of Emacs (system installed by apt-get: emacs26 and my own compiled version emacs27). They both us emacs.d directory, and I wonder what happens the packages are ...
77 views

### Is it possible to shuffle paragraphs?

I'd like to be able to quickly "shuffle" the order in which all paragraphs in a region occur. Can this be easily accomplished in emacs? For example, consider the following region. Hello world. This ...
11 views

### How to specify a pdf viewer for ess mode

I have set the variable ess-pdf-viewer-pref to "evince" But when I export any Rnw file using M-n e, instead of displaying the pdf in evince it is displayed inside Emacs. How can I stop Emacs ...
22 views

### Breaking up minified html

Is it possible to do this with vanilla emacs? If not what changes do I need to make. Original test.html <a id="try_redacted" target="_blank" href="http://redacted.com/game/2d/?try=1" style="right:...
36 views

### How can I automatically swap frame buffers if the buffer is already open?

I've seen the https://www.emacswiki.org/emacs/buffer-move.el script, but I'm trying to something a bit different. Suppose I have a frame with a buffer from file A.h in it and A.cpp in another frame ...

15 30 50 per page