# All Questions

16,102 questions
21 views

### realgud ipdb how to highlight line being debugged

I debug a python source file with M-x realgud:ipdb then call ipdb as python3 -m pdb <sourcepath> <args> I get 2 windows: ipdb ... shell and my source buffer. How can I get the line ...
272 views

### gnus “fancy” hyperlinks, bullet points, etc

Is there a way to get more formatting options from a gnus message buffer when composing a mail? I'd like to do hyperlinks of the style common in markdown or org-mode, viz: [[example link][http://www....
404 views

### Prevent folding org files opened by ediff

Folding gets in the way when merging two org files using ediff, so I'm trying to disable all folding in org-mode buffers created by ediff. Non-ediff folding behavior should remain unaffected. ...
35 views

### Remove text from toolbar

my toolbar is filled with many buttons, and I'd like to know if it is possible to remove the text so it only shows the icon (and if it is possible, how to do it). I currently have this : But as you ...
13 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 ...
71 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 ...
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?
161 views

### Make profiler report columns wider

I am debugging a very deep call stack. Unfortunately profiler reports (produced with M-x profiler-report) have a fixed width that obscures critical information when the stack gets deep. Is there any ...
16 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 ...
23 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 ((...
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 ...
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 ...
51 views

### (RegEx-)Replace: Sporadic Match data clobbered by buffer modification hooks

I know this was asked in other contexts already, but I couldn't find anything related to C++ development with my hooks that could help me. I am working a lot with replace and query-replace and query-...
37 views

### Retrieving a view of org-mode tasks completed within a range and that have a non-nil property

How can I retrieve, over an elisp list of files list-of-files, a view of all org-mode headers that (i) were CLOSED in between start and end such that (ii) these headers have a property P defined (that ...
14 views

### Org mode: Issue with export using HTML template with #+SETUPFILE

I have download two HTML themes from this git to my home directory. Following the instruction I have put the following line on top of my .org file: #+SETUPFILE: "/home/myusername/org-html-themes/...
127 views

### how to detect selection in date mode?

I want to write a mode for ledger. The first thing I want to do is to be able to insert date stamps. There is a very nice mode in Emacs called calendar. I want to be able to select a date within it. ...
32 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 ...
50 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.
41 views

### Emacs org-mode error in empo tags

I'm using emacs with org mode tempo tags, based on this questions and answers Q and A 1 Q and A 2 I get the feeling that I need to require org-tempo, but I get the following error: Debugger entered-...
20 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 / ...
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:
78 views

### org-mode document structure / templates

Suppose you had a large org document of recipes, with hundreds of entries like this: * Tasty Pudding ** Ingredients - Milk - Sugar - Eggs - Flavorings ** Process 1. Mix the eggs and sugar 2. Heat up ...
15 views

### Exclude different subtrees from export when using different back-ends

For example, main.org: * Heading * Common subheading * HTML subheading * ODT subheading I want to set tags or properties in such a way, that allows to export into main.html HTML subheading but ...
49 views

Running a fresh Emacs session with emacs -Q, I evaluated the following: (setq org-agenda-files '("~/index.org")) (setq org-enforce-todo-dependencies t) (setq org-agenda-dim-blocked-tasks 'invisible) ...
47 views

### Avoiding partial lines at bottom of screen

Is there a way to avoid only partially visible lines at the bottom of the screen, such as in this picture? Perhaps this could be achieved by adding some empty space below the minibuffer and echo area,...
22 views

### Saving file everytime leaving insert mode in evil-mode

Is there a way that I can automatically save the file when leaving insert state to go to normal state with ESC?
15 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

### 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.
57 views

### CC mode: make Tab just insert one tab or complete, no auto-indenting

I am dissatisfied with current behaviour of Emacs in CC Mode. I'm not sure if this applies to other major modes, but that's one I'm currently struggling with. Here are my problems: When I press tab, ...
1k views

### Make a function to toggle themes

How could I make an interactive function to toggle in between two color themes? From what I have been able to find there is no variable set to what color theme is currently in use, in fact several ...
20 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 ...
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, ...
27 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 ...
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{...
35 views

### csv-mode: do not split line on newline inside quoted field

I'm using the latest csv-mode in Emacs 25.3.1 in centos 6.10. The problem is that I have many fields that are long documentation strings and many of them have embedded newlines. This messed up csv-...
30 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) (...
18 views

### How do I suppress indentation after labels in Groovy?

I'm writing some Groovy code, and in my unit tests I have something like the following: def testFoo(){ given: //setup statement 1 //setup statement 2 //... when: //Execute ...
20 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 ...
12 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 ...
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 ...
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, ...
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 ...
195 views

### How can I disable the vertical scroll bar on just the minibuffer?

Look at this tiny scroll bar (circled in red): I think I could use the elisp function set-window-scroll-bars, but I don't know how to specify the minibuffer.
17 views

### Fontconfig warning when start emacs [closed]

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 ...
36 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 ...
37 views

### Emacs wont reopen my files from recover session

I was working in emacs when had a power outage, so my computer was knocked offline. After I got the computer back up, I launched emacs and tried to restore the last session. Emacs then said: "No files ...
41 views

### Python Documentation String Indent In Auto-Fill Mode (Emacs 26.2)

I've noticed a peculiar behavior when using auto-fill-mode editing Python code. For example if I start typing the following (fill-column is set to 79): def some_function(keyword_argument0, ...