All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
89 views

dired-recent - not show correct recent visited directories

Linux Mint 20 Emacs 27 dired, dired-recent Steps: 1. "recentf-mode" is turn on 2. Go to directory "Download". Use "Jump to bookmark" (C-x r b). Input "Download"...
0 votes
0 answers
7 views

Emacs Command Not Found After Installing In MobaXTerm

I'm having trouble installing emacs in MobaXTerm. When I open a new terminal I'm in the path home/mobaxterm. When typing emacs example.cpp in the terminal, I get an error emacs: command not found and ...
0 votes
1 answer
15 views

Org-babel ignores RESULTS when generating beamer?

I'm using Org-babel to generate a bunch of pdfs from a single Org-mode file, compiling using Beamer. Each subtree starts something like this: * Introduction :PROPERTIES: :EXPORT_FILE_NAME: pdf/...
0 votes
1 answer
50 views

Org mode LaTeX block fails to invoke gnuplot for pgfplots?

I've copied a configuration from the internet that allows me to generate images from LaTeX code blocks in Org mode. Here's the setup: #+PROPERTY: header-args:latex :results file raw drawer :headers '(&...
0 votes
1 answer
309 views

Doom emacs dired +ranger not obeying evil-mode

I am using doom emacs and in my init file I have (dired +ranger) The problem is when I open dired, I cannot press tab to select for example. I have first to toggle off evil-mode. If I do, I lose all ...
0 votes
0 answers
8 views

org-mode export HTML with translations

A variety of websites have a feature where you visit a webpage and if you append a language code (e.g: /fr /es /en, etc); the website will load that webpage's translation into the selected language. ...
0 votes
1 answer
21 views

C/C++ mode aggresive auto indent

In the C/C++ mode, on some contexts, like when pressing enter at the end of a function declaration, code is aggressively indented backwards with a style that ignores my overall configuration. For ...
0 votes
0 answers
6 views

Using ox-pandoc with ox-extra ignore headlines removes footnotes when using pandoc export

I am using the ignore-headlines feature that is part of ox-extra that comes with org-contrib. I enable that feature this way: (use-package org-contrib :config (require 'ox-extra) (ox-...
0 votes
2 answers
337 views

How do you troubleshoot an .el file not loading even though it's on load-path filepath?

I've copied a file to a path that's definitely listed in load-path symbol. But the file doesn't get loaded when running emacs with --debug-init flag. How would you find out what causes it? It uses ...
0 votes
0 answers
28 views

How to setup ediff-merge-files to interactively either save the mergebuffer or abort the merging when calling from the command line

I want to merge the two files $FILE1 and $FILE2 via emacs(client) into a $FILE3 on the command line with a way to abort the merge. I tried emacsclient --eval '(ediff-merge-files "'$FILE1'" &...
1 vote
2 answers
175 views

How do I group by and aggregate orgtable more efficiently?

I have the following org table where I actively record columns 1,2,3,4 and the remaining columns are calculated from the first four. Using this I calculate the aggregate from the last three columns ...
0 votes
1 answer
80 views

Linking from notmuch emails to org with date in the link description?

I am using org-mode to, well, organize information, and I often find it useful to link to email, where I use notmuch. I can do C-c l in a notmuch buffer to store a link, and then C-c C-l in an org-...
1 vote
1 answer
167 views

How do I pop/apply selecting a file or hunks from file in stash using Magit?

I need to select some files or hunks in one file in existing stash entry using Magit, and then apply or pop them. How can that be done? The git command for a file (with 0 replaced by the relevant ...
1 vote
1 answer
186 views

Create orgmode agenda from remote directory recursively over ssh

I've set up a vserver with my directory containing various .txt files used as Org files and other files. Now I am trying to get my local Emacs build an agenda gathering all data from the remote files ...
2 votes
2 answers
1k views

Emacs org-mode custom agenda view for each project

I have a project.org file that as a * Project subtree where each project I'm currently working on is tracked. I'd like to create a custom agenda view that separates out each project by project so I ...
0 votes
1 answer
13 views

Icons not being rendered properly in Windows Emacs installation

I have installed GNU Emacs 29.3 recently and I'm trying to setup a custom config. But I have been noticing that some of the icons are not being rendered properly in the Emacs UI. Below is a screenshot ...
2 votes
1 answer
17 views

Emacs 29 ert batch run: Error output changes between runs because of debug-early

We have a job running in CI that verifies the output of an ert batch run. The job also includes examples of failing tests which produce a backtrace. The job tests if the error message output matches ...
0 votes
0 answers
30 views

Difference between #FOO @BAR and :BAZ: in emacs org-mode?

What's the difference between these three? #FOO @BAR :BAZ: I know :BAZ: is a tag and you can view a tag list by selecting the tag. I also know that @BAR turns blue in my editor, but don't know ...
0 votes
2 answers
468 views

cannot find binary even though it's in my exec-path

when I do C-h v and look up exec-path, I get the following: ("/usr/local/bin" "/usr/bin" "/bin" "/usr/local/games" "/usr/games" "/usr/lib/...
2 votes
1 answer
169 views

global-auto-revert-mode with confirmation first?

I know I can use (global-auto-revert-mode 1) to automatically revert a buffer if the buffer has been changed in another editor. However, when Emacs detects (automatically) that the buffer has changed, ...
15 votes
4 answers
15k views

How to place all auto-save files in a directory

I would like to put all of my auto-save files into a directory, say something like ~/.emacs-saves Based on what's written in the wiki, I came up with this: (setq backup-by-copying t ; don't ...
2 votes
1 answer
46 views

How to save org-mode file without results of source code block

I'm preparing a presentation in org-mode and I'd like to demonstrate live the execution of code. So I'd like to start the presentation without any result block. How can I remove (strip) the results on ...
42 votes
8 answers
19k views

org-mode: How to export underscore as underscore instead of highlight in HTML?

I am using org-mode, and the document I am writing has a table name whose name looks like this: tab_weekly_report. When I export the document to HTML, I expect the name to exported as ...
0 votes
1 answer
111 views

Insert Unicode in GUI Emacs and Xorg

I see that for GUI Emacs, we should use ucsc-insert (C-x 8 RET), but this is totally different than under xorg, where we use Control-Shift-u. Do we have a method that would work in both? The reason I'...
4 votes
2 answers
2k views

no org-babel-execute function for sh!

If do M-x org-babel-execute-src-block over the code block below, I get "evaluate this bash code block on your system", and then "no org-babel-execute function for bash". Changing ...
0 votes
1 answer
1k views

Doom Emacs start-up problems

Running Doom Emacs 2.0.9 on Emacs 27.1. In my init.el I have org-roam enabled like so: :lang (org +roam +journal) In my config.el I also load org-habits, hide it in initial agenda view and set-up a ...
1 vote
1 answer
110 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 ...
2 votes
1 answer
865 views

Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
8 votes
2 answers
2k views

How to highlight specific keywords inside strings/quotes?

I have another syntax highlighting for SQL keywords inside strings (inside quotes) in VIM. It looks like this: Then in Emacs with PHP-mode, everything between quotes (') will be considered as a ...
0 votes
0 answers
26 views

how to display a pie chart to indicate Checkbox statistics hierarchy

I have installed org-modern in my windows PC, but the Task list progress bar is not displayed like the Circular PIE as shown in the following screenshot. The source of the screenshot is the org-modern ...
0 votes
1 answer
160 views

What configuration file should I modify to affect tramp configuration?

I am new to Emacs. I run Linux. I'd like to tramp into a Windows machine, so that I can edit the files on the Windows machine from the comfort of my Linux system. Apparently, you have to change the ...
29 votes
3 answers
8k views

How to change the frame title from `emacs@host` to visited file name

I am using Emacs 24.5.1 on OpenSUSE Tumbleweed, with Gnome 3.16, and the title of the GTK window with Emacs in it is always emacs@hostname. How can I change it to the name of the current file I'm ...
2 votes
1 answer
586 views

No numpy, scipy, sympy and matplotlib minor-modes?

Python scientific libs are immensily popular for the last decade or so. However googling and "melping" for its emacs minor-modes reveals nothing. Basically I need just syntax highlighting. Do you ...
0 votes
2 answers
42 views

While editing C++ code, using lsp, how do I display function prototypes?

I am using emacs with clangd lsp setup. In the status bar, function prototypes are displayed as I enter code, which is very convenient. However, sometimes there are different versions of a function ...
0 votes
2 answers
17 views

Emacs cursor settings not working in Debian running on WSL

I am running emacs on Debian bookworm on WSL (Windows Subsytem for Linux). I run emacs in a Window terminal. Everything works except the emacs cursor is very hard to find. If you look carefully at ...
0 votes
1 answer
169 views

How can I develop in Go with IDE capabilities for large projects

I am trying to migrate from GoLand to Emacs as my primary IDE for working with Go. I've gone through the standard advice online: company-go, go-mode, lsp, all that stuff. It was hell, it took forever, ...
0 votes
1 answer
2k views

company-mode: no completions found

I am new to emacs (long-time vim user). Specifically, I am using doom-emacs. Doom is supposedly set up to use company-mode for auto completion, but I have not gotten it to work. I have the following ...
0 votes
0 answers
19 views

How can I disable org-element-cache?

I tried using (setq org-element-use-cache nil), but I'm still getting various org-element-cache-related errors like "org-element--cache: Org parser error...". What is the proper way of ...
4 votes
1 answer
198 views

Dired; Is it possible, to show video duration as column in dired view?

i want to let dired show the duration of multimedia files as a column inside the dired buffer detail view. Is it possible? Any third-party extensions for dired? Currently i use exiftool -T -...
0 votes
2 answers
236 views

Automatically remove tag

I want to automatically remove 'tag1', from a heading if I either assign a scheduled or due date or 'tag2' to it. Just to clarify, there is: * Some heading :tag1:tag3: If I add 'tag2', it becomes: * ...
0 votes
1 answer
62 views

Building emacs for Alpine Linux info/dir target failure

I am trying to build emacs for Alpine Linux by following the instructions. After installing the relevant packages I run configure --with-x-toolkit=lucid --with-mailutils --enable-gcc-warnings --with-...
0 votes
2 answers
519 views

Write a function that runs another function after adding a hook

I want to run some function f after adding a hook to a mode and after running f remove the hook that I added, returning the result of f if there is one. Here is a non-working version that I hope ...
1 vote
1 answer
90 views

Swap two pieces of text

I often find myself swapping pieces of text. How can I make a command to replace the current text with the latest kill, then put the text I just replaced at the position of the previous kill? Or is ...
0 votes
0 answers
31 views

Why is auto-fill-mode in sh-mode not always putting a space after the leading '#' comment character?

I'm trying to find why the auto-fill-mode of a sh-mode buffer (with "# " as comment) sometimes does and sometimes does not put a space character after the leading '#' comment. As a secondary ...
1 vote
1 answer
26 views

How to test for Warning using ERT?

I want to check for a warning but not sure how to go about it. My warning is: Warning (my-func-file-not-found): /path/to/somefile.txt This is created with display-warning 'my-func-file-not-found. I ...
0 votes
0 answers
14 views

Highlight org-pretty-entities in a custom color background

I'm using org-pretty-entities t to enable pretty entities like \gamma or \to. But I want to be able to highlight them in a different background color which helps me differentiate that these are pretty ...
0 votes
1 answer
46 views

emacs M-x & shortcuts

I have been using emacs extensively on Linux for decades now, but could never get shortcuts to work, and never bothered with it. However now, since I get autosave data due to my recent setup, I need ...
5 votes
3 answers
2k views

Using emacs-snapshot from ppa:ubuntu-elisp/ppa on 22.04

To have the latest emacs, on ubuntu 22.04 I activated the ppa https://launchpad.net/~ubuntu-elisp/+archive/ubuntu/ppa and installed emacs-snapshot from there. When starting it I get the warning: You ...
3 votes
1 answer
192 views

Indenting LaTeX code for \if \else \fi statements

This is related to this Emacs.SE question. I use the code from the answer: (setq LaTeX-begin-regexp "\\(?:begin\\|if@\\)\\b") (setq LaTeX-end-regexp "\\(?:end\\|else\\|fi\\)\\b") (defun LaTeX-indent-...
1 vote
1 answer
36 views

How to make all lines in a buffer have equal height?

The context I'm using term in GNU Emacs 29.3. I usually use tmux inside *terminal* (i.e. the buffer that is opened by M-x term) and in my tmux configuration I made the tmux status bar to be displayed ...

15 30 50 per page
1
2 3 4 5
546