# All Questions

22,237 questions
Filter by
Sorted by
Tagged with
3 views

### Invoking *Completions* with successful minibuffer autocomplete

I imagine this is a simple question, but I have been unable to find an answer. C-x C-f, as you know, brings up a find file minibuffer. Entering a few characters afterward and pressing TAB will ...
15 views

### Is there a way to delete the content under selected headers, but not the headers (and subheaders) themselves?

Is there a way to delete the content under selected headers, but not the headers (and subheaders) themselves? I.e., ** TOC *** PART 1: VECTORS AND GRAPHICS [[https://livebook.manning.com/book/math-...
12 views

### MAGIT: meaning of magit status: head, rebase, push (git newbie)

In my magit status I see the following: Head: master Commit message Rebase: origin/master Commit message Push: origin/master Commit message I may have done something (pressed some keys) ...
16 views

Suppose I have opened a new URL in EWW (Altx eww). The webpage is loading, but it is taking too long to load, so I want to stop the page from loading. How do I stop the loading of a webpage when using ...
25 views

### Lispy and Racket

I'm using lispy with Racket and having a tough time with some forms. Namely, if I with to a let or keyword argument I can't seem to type the inner [ character. For example, I want to define a ...
11 views

### shell-resync-dirs hangs

When I run shell-resync-dirs 1, the function hangs, until I press C-g, at which this point, what looks suspiciously like the output of my shell's dirs -l command 2 gets inserted into my buffer at ...
15 views

### Get company to sort single underscore before double underscore, specifically with elpy/python-mode

Edit: this question is a duplicate of this one; I'm leaving it because I got a helpful answer and I didn't find the other one after reasonable amount of searching (so I hope this one being here will ...
20 views

### (Org) TikZ for exporting both LaTeX and HTML/MathJax

I'm exporting an Org Mode project both to LaTeX and to HTML (with MatJax). Now I need to add a TikZ picture which can be exported nativelly on LaTeX and must be rendered in svg for HTML. Writing the ...
16 views

### On installing a handler for SIGUSR1

The documentation quoted in this answer mentions two different way of installing a handler for a SIGUSR1 signal, namely: (define-key special-event-map [sigusr1] 'sigusr1-handler) and (global-set-key [...
9 views

### Edit wikitext using Doom Emacs

I might have to edit some wikitext files. I am using tiddlywiki but the syntax is similar to mediawiki. I looked up but could not find any specific mode to edit wikitext documents. HTML goes closest ...
19 views

### use-package: How to skip installing/updating packages which are installed by system package manager?

I use use-package with straight.el on NixOS. Some packages are installed by Nix, such as evil and org-mode. I see that use-package still clones their repositories and tries to build them. How to avoid ...
34 views

### Is there any way to check if I'm under a heading using org-mode API?

To be more specific, suppose I have an org-mode file with the following contents: Foo * Heading1 Bar #+begin_src elisp (message "code") #+end_src If my current position is at Foo, then I'...
19 views

### How to activate functions on .org files from within agenda view?

From agenda view, is it possible to execute functions on specific .org files? Example setup: foo.org and bar.org are source files for agenda Example working function from : Sort entire hierarchy in an ...
13 views

### How to scale toolbar on HiDPI (4K) display on Microsoft Windows?

My laptop display is 3840x2160 and has about a 15" diagonal. My setting to "Change the size of text and apps" is set to Windows's recommendation of 250%. The title bar, text in the ...
23 views

### How to suppress Type ‘C-c C-l’ to display results of compilation. after compiling LaTeX file

I am using following solution (https://emacs.stackexchange.com/a/65076/18414) to compile a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (...
7 views

### How to ignore mail header in mu4e for visual-fill-column-mode

When setting a mu4e-view-mode-hook to fill columns for easy reading and without having to hard wrap the lines with fill-mode, then it also wraps the mail header, what makes it rather unreadable. Is ...
25 views

### Direct inclusion of HTML link files during HTML export in Org mode

I'm preparing static html site with interactive Javascript components visualizing my research data in Org mode. Javascript components are returned by the Org Babel Python script in form of HTML string ...
20 views

### Org Mode: Sort specific tree and refresh agenda

Trying to create a single key that sorts a specific tree by date and then refreshes the agenda view. (I have other dependent functions such that I want to sort the actual tree and not just the agenda ...
25 views

### Spacemacs 0.300: installing only with zip and tar.gz archives offline?

OS: Windows 10 Emacs: 27.2 Spacemacs: 0.300 For some reasons, I cannot retrieve spacemacs through git (a complex combination of corporate proxy and other issues). But I can download archives. Being on ...
20 views

### How are program arguments handled when a program/script is launched from Emacs?

I often find myself wondering how people handle program arguments when they are developing with Emacs. Let's say we have a Python script test.py and launching it requires supplying arguments, e.g. --...
6 views

### debugging browse-url-firefox

At work they just upgraded firefox to 78.140esr on Redhat. This broke browse-url-firefox for me. It now seems to do nothing. Things worked just fine with the old version of firefox. Are there any ...
19 views

### Is it possible automate switch to window *Completions*?

Linux Mint 20 Emacs 27.1 Install package: Consult, Vertico, Embark Steps: M-x shell Input cat test. and press TAB Open window *Completions* with possible candidates. Nice... but the cursor is not ...
31 views

### How note emacs shortcuts in kbd-style?

Emacs keyboard shortcuts are often written as inline code like C-c C-p. How should this be written in kbd-style? C-c C-p C-c C-p C-c+C-p C+c C+p Ctrl+c > Ctrl+p or something else? Version 5 is ...
14 views

Suppose there are two domains example1.com and example2.com pointing to the same website (a static blog). The RSS feed at examplex.com/index.xml (x is 1 or 2) only has relative links. So you have /...
9 views

### Error sending mail via mu4e

I get the following error after sending mail via mu4e: Error (message-sent-hook): Error running hook #[0 "\301\302\303 !\207" [mu4e-sent-func mu4e-sent-handler mu4e~proc-sent buffer-file-...
13 views

### Spacemacs and elpa-mirror

OS: Windows 10 Spacemacs branch: develop Hi, I am behind a corporate proxy. I want to use a local version of elpa through d12frosted's elpa-mirror (https://github.com/d12frosted/elpa-mirror). I have ...
39 views

### How to perform a multi-file regex-search with a regexp that encompass several lines?

Scenario: I want to detect all defcustom sexp that have a :set or :initialize keyword in all Emacs Lisp files inside a directory tree. Searching for newline can be problematic depending of the regexp ...
8 views

### Automatically fold LaTeX environments with TeX-fold-buffer

I would like to automatically fold all LaTeX environments when I open a .tex file, so I added (add-hook 'LaTeX-mode-hook (lambda () (TeX-fold-mode 1))) (add-hook 'find-...
25 views

### Add custom entry to magit-dispatch

One of the commands I find myself running very often is git grep. I would really like it to be accessible through the same magit menu as other commands. However, from my understanding of magit.el, it ...
10 views

### org-babel: How do I make tex source blocks show images of the pages produced as their output?

I am thinking of sth like https://xenodium.com/previewing-swiftui-layouts-in-emacs-revisited/ , but for tex source blocks:
7 views

### What's the correct way of setting python directory in mono-repo in spacemacs?

I've added the following to dotspacemacs-configuration-layers in my ~/.spacemacs config file: (python :variables python-backend 'anaconda python-test-runner 'pytest python-sort-imports-on-save t ...
28 views

### syntax error near unexpected token (' when running find-name-dired

find-name-dired is raising the following error. Is the format incorrect? M-x find-name-dired RET; Find-name (directory): ~/test RET; Find-name (filename wildcard): test.txt RET Result: /path/to/...
6 views

### Unable to open files for editing with GPG + EasyPG

I have been using GPG + EasyPG for encrypting/decrypting files on my Macbook. Recently, I moved to a new Macbook and tried setting things up similar to my previous setup. However, while the files are ...
5 views

### How do I make helm` save search results in a grep buffer?

I do helm-find-files (C-x c C-x C-f), Tab, "Grep current directory with AG" (M-g a), enter pattern, Tab, "Save results in grep buffer" (F3). Now, how do I make M-g M-n/M-g M-p work ...
24 views

### How to programatically detect if a unbound symbol is part of an autoloaded file and what file that is?

Given a variable or a function symbol not currently bound, what would be the variable that holds the auto-loading association I could use to search for the symbol and find out what file would get ...
16 views

### Easiest way to copy an inline image from org mode to clipboard in Doom emacs

Easiest way to copy an inline image from org mode to clipboard. I tried ox-clip, but when hovering over the image i get: funcall-interactively: Symbol’s value as variable is void: org-html-inline-...
32 views

### How to programatically detect if a minor mode is global or local?

Is there a way to programatically detect (in Elisp) if a minor mode is a global minor mode or a local minor mode? For instance I'd like to be able to detect that show-paren-mode is a global minor mode ...
10 views

### Why is access to Windows shares (SMB) slow from Emacs for Windows (x86-64)?

I use Emacs at work for most things, on Windows, and things are mostly good (slow Magit notwithstanding). But one thing completely puzzles me: opening files or directories on Windows shares (SMB) ...
20 views

### Using sed to filter/modify make output

I have to live with a build system that moves pieces of source around before running make. I have a function that pipes output of make through a sed to remap file references back to the source tree. (...
9 views

### How to make csv-align-mode default in tsv-mode?

I'm editing tab separated file with Emacs and csv-mode.el. When the document is open, I can align the columns with M-x csv-align-mode. How to make it automatically aligned when I open the file? Both ~/...
25 views

### funcall inside local-set-key

Programming Perl in cperl-mode I often use _ symbol, so I decided to remap it with / symbol, so I could type faster. I created the following functions: (defun add-underscore () (interactive) (...
24 views

### How to disable holiday display in Calendar

I'd like to completely disable the holiday feature in Calendar, and only show events from my only "diary" file. How can I do this?
23 views

### Prefix-less superscript in org mode

I want to write «nPr» in org mode Now org mode doesn't treat "^" as a superscripting operator if its preceded by a space char. The best I could come up with was \nbsp{}^nP_r where there is ...
11 views

### Close buffer switching to next buffer without leaving or closing the window

I am using the Emacs-terms here. I want to close the current file/buffer. But I do not want to leaver or close the current emacs-window. In the current window there should just appear the next open ...
12 views

### Run current py-file

Maybe I am wrong to think that elpy is or should be able to do that. But can't I just run the current (means: open in current active buffer) py-file? I read about C-c C-c. But this just open a new ...
39 views

### Automatically Uniquify Certain Buffers

Emacs does a wonderful job of disambiguating buffer names when I have several files with the same name open. That is, if I open a single main.cpp, the buffer is simply called main.cpp, but if I open ...
17 views

### Orgmode: org-agenda-filter-by-tag working with sub tag

I am looking for a way that when I click on a tag, lets say "G@2018_My_Goal", all tags containing this tag are also found, e.g. headlines with the tag "G@2018_My_Goal_Sub_Goal" ...
23 views

### Org mode: How to get results from a code block with :session header?

First question: How does one catch the results out of the second code block below? #+begin_src python :session :results silent band = "ABBA" #+end_src #+begin_src python :session return ...