# All Questions

19,849 questions
Filter by
Sorted by
Tagged with
9 views

### Spaceline: Disable dimming of segment in inactive windows

I have the window-number segment enabled for the spaceline package on Melpa. On a frame with 3 windows, I will see the window number displayed only on the currently selected window's modeline. I ...
11 views

### Sunrise Commander keep tabs after exit

I'm new to Emacs as well as to Linux. Being a fan of Total Commander, I want to achieve something similar using Emacs. Sunrise Commander with Tabs extension really saves the day - but with one ...
40 views

### Is there a way to attach hidden/invisible data to a place in text?

I want to keep track of some stuff happening in the buffer, with elisp, and display indicators depending on that stuff. To that end, I need to cache calculated data for different parts of the file, ...
15 views

### Automatically complete org-mode tasks in agenda based on headings in specific org file

So I'm trying to set up a specific workflow with emacs. Basically, I'll have NFC tags around the house on the various things I need to deal with for chores and etc. As I do these tasks, I'll tap the ...
20 views

### Using company mode to complete sentence

As I understand, company mode can help complete the word, but not a sentence. I would like to complete a fragment of sentence. I would like to complete fragment e.g. "portal and hepatic doppler&...
21 views

### Link to footnote export as non-superscript

Links to a footnote automatically exports as superscript in LaTeX. Source: Lorem ipsum dolor sit amet, consectetur adipiscing elit. [fn:1685d75dd9ccdec5: This is a footnote.] In sed erat porta, ...
25 views

### Creating backup and auto-save files that are not hidden

I use the following code for backup and auto-save files: (setq delete-old-versions -1) (setq version-control t) (setq vc-make-backup-files t) (setq backup-directory-alist (("." . "h:/...
19 views

### How to setup fetchmail for mu4e?

Disclaimer: I am not very well-versed about how email servers and email clients work. I have been lately looking into setting up email on my Emacs. I decided that I'll use mu4e. If I understand ...
9 views

### How to add picture before a title in HTML exported by OrgMode

I am writing an article in org mode to be exported to HTML for being published on the web. By looking at the documentation, I have not been able to find a way to insert an image before the title of ...
47 views

### Combine two interactive functions

For example, I want to sort a file, then remove the duplicate lines. I run M-x sort followed by M-x delete-duplicate-lines. I wanted to combine them into a single interactive function. Here is an ...
30 views

### How can I make emacs interpret tilde ~ as a literal tilde (never to modify letters like Ã, Ñ)

I want to always have tilde insert a literal tilde (~). How can I ensure this in emacs?
19 views

### Convert region/subtree from Markdown to org

I often have Markdown text in my clipboard that I would like to insert into an org file. After pasting the text into my org-mode file, is there a quick way to convert it to org format? For example, ...
22 views

### Gnus fails opening larger imap group

If I try to open an larger imap group (a few thousand messages both read and unread) Gnus gives a warning: Wrong number of arguments: #, 2 And the Summary window is empty or it contains only some of ...
37 views

### Modify value of a variable by applying a function to it?

Suppose one of the customizable variables in a package is var, and its default value is a list, list. I understand I can change the value of var to mylist using (setq var mylist) in my init.el. ...
25 views

### Function like setcar that doesn't change the value of the input function?

Early beginner here. I'm looking for a function that takes a list and changes only its first element, using some function or other. I realize setcar sort of does that, but it also changes the initial ...
9 views

### Is there an easy way to copy files with ido navigation?

I'd like to be able to do something like this: Navigate to a buffer associated with a file C-x C-w (enter file ido file writing mode) navigate via ido to another directory Do something at this point ...
32 views

### Emacs warning after package updates

After running updates using list-packages, emacs keeps popping out the following messages when I open a tex file. I tried to reinstall the packages and commented out all settings related to auctex, ...
33 views

### Is there any way of getting overview statistics for all checkboxes in a given org subtree?

I have an org document with the following structure * Tasks ** First category - [X] Task ** Second Category - [ ] Task And I'd like to get statistics for both the overall completion and each ...
36 views

### How to open a folder with a local file manager?

I use Emacs 26.3 on Ubuntu 20.04 and I often need to manipulate org files with Ubuntu file manager. It would save me a lot of time if I could open directories from emacs file links. For example, I ...
19 views

### How to get the display dimensions of the display emacs is in?

I tried querying the display width using: (display-pixel-width) however this reports the pixel width of my external monitor instead of the laptop's display, where emacs is. Is there a way to show ...
43 views

### How can I preview LaTeX “#+BEGIN_EXPORT” blocks? Is it possible to accomplish this with “org-latex-preview”?

The context When editing Org mode files, I like editing code snippets in isolated buffers because that way I can use snippets and language dependent features in those buffers (something which is not ...
2 views

### Indentation for typeclass in coq mode

In coq-mode for typeclasses in shifts the braces: Class Group G : Type := { e : G; mult : G -> G -> G; inv : G -> G; }. Is it possible to disable the braces indentation and ...
36 views

### How are a daemon and a server different in Emacs?

After running (server-start) in Emacs, I evaluated (daemonp) and (server-running-p) The first one returns nil, whereas the second one returns t. So, how are a daemon and a server different in Emacs? ...
19 views

### How to remap the search backwards evil-ex-search-previous command of evil?

I want to remap evil-ex-search-previous to some other key than ,. I tried (define-key evil-motion-state-map "," 'evil-avy-goto-char-in-line) (evil-define-key 'normal magit-mode-map ",&...
30 views

### Make “org-latex-preview” load package so that it properly renders “tcolorbox” environments

The context The following org buffer * Random name This is an equation $$x = a + b$$ This is a box \begin{tcolorbox} a \end{tcolorbox} is previewed as The ...
17 views

### Dealing with strange characters in org babel results

I am playing with SaltStack configured by org babel source blocks. I try to pass output of salt fingerprint to minion configuration file. If I use one command direcly in bash I receive this output: # ...
17 views

Is there a way for emacs to receive display changes notification from the windows manager? I understand this might be an OS dependent question, so I'm particularly interested in the interaction ...
41 views

### Change font size globally with a shortcut

When I need to change the font size I evaluate the following region: (set-frame-font "JetBrains Mono-14") This is far from optimal since it involves a lot of typing. I'm looking for an ...
26 views

### A script to run emacs in cmd

Good day, I created the following script in order to run emacs 27.1 in cmd without gui: $cd \Users\xxxxxx\emacs-27.1-x86_64\bin$ emacs-27.1.exe -nw %1 An elementary script which I named demacs. ...
12 views

### Recentf list not updated

I have this problem using recentf: the list seems to be updated only for the current session; when I close and restart the Emacs client, the last visited files are in the list; if I close Emacs and ...
32 views

### Tab is not inserted when indent-line-function is defined

I defined indent-line-function variable for Makefile corresponding to the problem referred in the link. But when this configuration is activated, pressing TAB key does not insert tab letter at the ...
20 views

### Interactively pass argument and use regex in find replace

I have written the following code (defun krmet-replace() (interactive) (save-excursion (save-restriction ;; Narrow to the region (narrow-to-...
18 views

### ESS start process does not include new R version

I am using the windows version of emacs that includes AuTeX and ESS from Vincent Goulet. I was using an older version of this packaging with a couple different versions of R. I recently installed the ...
47 views

### flyspell and ispell give too many spelling suggestions

I'm using flyspell mode with aspell under the hood. Emacs 27.1 installed using Homebrew on macOS Mojave. This behavior happens both with my normal configuration as well as emacs -Q. I looked through M-...
26 views

### Do m-x command on entering buffer with a specific file type

Sorry if this is a really noob question. I have recently gotten into Emacs with the Spacemacs distribution and I installed a plugin called "focus." I want to be able to have the command &...
24 views

### C++ lsp-mode: inconsistent behavior between remote and local projects

I've run into a bit of an odd problem trying to use lsp-mode. My problem setup is as follows: I'm working on a C++ project on my computer, and I'd like to be able to use lsp-mode with it. The catch is ...
22 views

### How to define interactive function that will not auto-complete?

If I do this: (defun foo-bar-baz () (interactive) (message "foo-bar-baz")) And then M-x foo-baz RET (note no "bar") then completion matches foo-bar-baz and it executes. Is ...
17 views

### How to send quoted argument to call-process

I want to use the imagemagick convert command to draw on a image file. I have the image data as raw-text in a buffer and now I would like to run convert - -draw 'rectangle 0,0,100,100' - on it (the ...
21 views

### Disable evil-mode in eshell

I have disabled evil-mode in eshell by (evil-set-initial-state 'eshell-mode 'emacs) but when I switch windows(accidentally) using C-w k from eshell, evil-mode gets enabled. How do I prevent this ...
46 views

### How to duplicate a file in Dired?

Let's say I have the following file shown in Windows File Explorer: If I enter C-c C-v to copy and paste the file, the file is duplicated and automatically given a name: We can repeat this to get ...
23 views

### How to sort by KIND in helm-find-files (Emacs)

I know there is such a variable as helm-ff-initial-sort-method. However, it does not include KIND as a sorting method. Anybody know how to sort files in helm-find-file by KIND? Thank you!
27 views

### How to remove fringe when copying from emacs?

When copying from emacs buffers in a terminal to other application, I grab the region and copy them and paste it onto another application. The copied text has a leading whitespace in each line ...
25 views

### How to cycle over a pre-defined list of fonts?

I would like to be able to switch fonts quickly between a predefined list of mono-spaced fonts I know work well in Emacs. Instead of selecting the font from all system fonts which shows too many, most ...
22 views

### How to set automatic indentation to move past numbers on first line?

I'm using auto-fill-mode with indented-text-mode to write numbered lists. I'm trying to figure out how to persuade the automatic indentation to move past an item number on the first line. I'm ...
11 views

### Is the formula line tracking column insert properly in an org table?

I exhibit with a simple table. My org version is Org mode version 9.2.4 (9.2.4-10-g3b006f-elpa @ /Users/alanwehmann/.emacs.d/elpa/org-20190715/) | 1 | 2 | 3 | 4 | | 5 | 6 | 7 | 8 | | 9 | 10 | ...
26 views

### How to disable remapping by a package

I recently used a package that overwrote C-x C-s to something other than save, causing me to lose a lot of work. Is there a way I can advise emacs to check for a blacklist of keybindings that it ...
25 views

### Show compilation errors in “#+RESULTS” code blocks

The problem I'm currently writing notes on C++ classes. Sometimes I annotate what I shouldn't do (because they cause compilation errors) so it would be really helpful if I could automatically insert ...
17 views

### changing faces for deadlines in org

Using this code (defcustom org-agenda-deadline-faces '((1.0 . org-warning) (0.5 . org-upcoming-deadline) (0.0 . org-upcoming-distant-deadline)) How do you replace "org-warning" ...