# All Questions

20,393 questions
Filter by
Sorted by
Tagged with
2 views

### Enable/Disable minor modes in .dir-locals

I've tried the following 2 paths: 1) Loaded globally, disabled per project Enabling my minor mode in my init.el file (eval-after-load 'js2-mode '(progn (add-hook 'js2-mode-hook #'add-node-...
3 views

### shell-mode alias keyword is not recognized as font-lock-builtin-face type

In shell-mode; alias keyword is not recognized as font-lock-builtin-face type and remain as white color (with the current theme I am using it should be in different color) => Is it possible to add ...
13 views

### Why can't I type a dollar sign in this latex equation?

Consider the following latex document. \documentclass{article} \usepackage{tikz} \begin{document} Consider the following picture. \[ \begin{tikzpicture} \node (X) {X}; % this X should be ...
10 views

### Closing emacs with (desktop-save-mode 1) results in “Current desktop was not loaded from a file” even after setting variables

I have set the following things in my .el file (not init.el): (setq desktop-dirname "~/.emacs.d/desktop/" desktop-base-file-name "emacs.desktop" desktop-base-lock-...
15 views

### command run in docker-tramp running on the host rather than remote

The setup: I have a docker container connected with a mounted volume containing an org file. The docker container has both texlive and emacs (configured exactly the way it is on my host) installed. I ...
42 views

### Log Tramp traces to a file

I am experiencing some Emacs Tramp connection problems and want to ask for help. However in my case Emacs hangs completely because of Tramp and there is no way I can access Tramp debug files. (it is ...
19 views

### Function to toggle between two modelines

I'm using a modeline at the top, and have defined the default-modeline as a dash-modeline. (see Nano-Emacs) But as this modeline still kinda of beta, sometimes is good to have the old mode-line to ...
10 views

### How to update emacs on MS Windows?

I have installed emacs 2-3 years ago. The version I'm using now is 25.2.1. I want to update it to the latest version, which is 27.1. I uninstalled it and then installed again to no avail, it is the ...
36 views

### Pasting images into Org

I'd like to paste images from the system clipboard into an Org file. Emacs should write the clipboard content to a suitable file (likely an attachment) and insert a suitable link (see https://orgmode....
22 views

### emacs opens py file as sh file

Emacs has opened a py file as a shell script. What went wrong and how to change?
24 views

### How can we get input using emacs?

In order to compile my lua code i use this config (defun lua-main-compile () "use lua to compile my lua code" (interactive) (compile "lua main.lua")) In my lua code when i type x =...
15 views

### org verse blocks: indentation not preserved on export to odt

the org manual says "To preserve the line breaks, indentation and blank lines in a region, but otherwise use normal formatting" you can use #+begin_verse #+end_verse block. if i run emacs -Q,...
80 views

### Deleteing remote branches

I want to delete a remote branch. How can I do git push origin --delete my-branch in magit, to delete a remote branch?
14 views

### How do I fix “incomprehensible buffer” error when running list-packages?

When running list-packages in emacs on an up-to-date Debian Buster (10.6) I get the following error: error in process sentinel: Error retrieving: https://stable.melpa.org/packages/archive-contents &...
4 views

### Can't run command using C-. keybinding with Evil

I'm trying to use racket-mode for programming Racket. One of the racket-mode commands is bound to C-c C-. (control c, control period). However, whenever I try to press C-c C-., it appears to get ...
7 views

### Cannot capture notes into separate org file when entering reference into Bibtex with ivy

I am using emacs 27.1-4.1 with Spacemacs v.o.200.13 Ivy and vims. I am relatively new to emacs and am expanding into bibtex with ivy-bibtex. in my .spacemacs file is: (autoload 'ivy-bibtex "ivy-...
24 views

### How can I sort Org headings by value in :properties:

My org file structure is this: * Heading 1 :PROPERTIES: :EVENT_CREATED: [2016-11-28] :END: * Heading 2 :PROPERTIES: :EVENT_CREATED: [2016-10-27] :END: * Heading 3 :PROPERTIES: :EVENT_CREATED: [2019-02-...
8 views

### How can I prevent empty files from showing up on the Ibuffer list?

On my IBuffer I always see a *.py file that is actually empty. Is it possible to prevent this file to be hidden in the Ibuffer or basically remove it. [ Default ] *.py 0 ...
6 views

### error in process filter: No email account found

I use Emacs 27.1 (9.0) and mu4e 1.4.13 with multiple email accounts, and those email accounts have one main username and multiple aliases. Recently I started getting this error when replying to an ...
32 views

### Leave evil's insert state with Control + c

I would like to be able to leave the insert state (I think that's what it's called in emacs?) using the Ctrl+c combination I know from vim. I'm using doom-emacs in case that's important, and I'm ...
17 views

### Org export to odt incorrectly use “DEADLINE” for “SCHEDULED”

I noticed that when org-exporting to and odt file, the SCHEDULED timestamps are changed to DEADLINE instead. A minimum working org file: #+TITLE: Test file #+OPTIONS: p:t * Section 1 ** TODO Section ...
10 views

### interactive-haskell-mode: Format specifier doesn't match argument type

Pressing C-c C-l (for a simple "Hello, world!" script) in interactive-haskell-mode gives me the error message Format specifier doesn't match argument type whereas I would have expected the ...
14 views

### I have auto-fill mode enabled for text documents, how do I automate fill-region when rewriting?

I have auto-fill mode enabled for text files, and when I edit text I often have to run fill-region within the selected area to make it look nice again. Is there a way to automate this, or to make ...
21 views

### Stop indenting second blank line after end of the list

I try to configure org mode in the way that it doesn't indent second blank line after last item of the list. Is there a way to achieve this? Example: - All of the words in Lorem Ipsum have flirted ...
9 views

### xref-find-references: Exclude mentions in comments?

xref-find-references finds all references to the searched symbols. In many cases I find the results to be heavily cluttered with mentions of the symbol only in a comment. Is there any way to tell xref-...
22 views

### Navigating to a defconst variable defined by a Lisp macro

My goal is to define a const variable within a non-trivial macro that can be navigated to after calling describe-variable. The design goal of my macro works just fine if I define it like so: (...
23 views

### Add note to clock entry when moving item to DONE

For my Org buffer, I configured #+STARTUP: lognoteclock-out for adding notes to my logbook entries when clocking out, which basically works fine. However, when the clock is stopped due to the item ...
29 views

### How to org-refile-targets to an file+olp+datetree?

I have an org-capture that writes a timestamp (setq org-capture-templates (("a" "Agenda" entry (file+olp+datetree "agenda.org" "Calendar Agenda") ,(...
28 views

### Saving filter list for Bookmark+ package

I've recently started using the BookmarkPlus package and I've been loving it. However there is one thing that I can't seem to figure out. I want, from my big list of bookmarks, to create a set of ...
21 views

### Make customize save lists newline separated

When saving changes using customize Emacs serializes lists space separated. This makes for example the package-selected-packages variable extremely long and hard to scan over. Is it possible to make ...
27 views

### Alternative to read-number' that does not truncate floating point zeros

The function read-number truncates floating point zeros; e.g., (read-number "PROMPT: ") RET 100.00 => 100.0 I am seeking a similar alternative to read-number that will not truncate; e.g.,...
12 views

### How to get asm file highlighting to be to be similar to vi?

Here I have a random (invalid, but shows the important syntax highlighting) asm file as in Vim: Emacs seems to be highlighing incorrectly (? there are many flavours of asm but I've never seen ...
12 views

Recently I "fixed" issue with locking when I access LXSS backed P9 network FS mounted in Cygwin by: (setq create-lockfiles nil) I read (info "(emacs.info) Interlocking") but still ...
37 views

### Understanding emacs keys

I'm vim user and I've just started using emacs with evil. But one thing I'm finding really hard to understand is when do we use <C-x>, <M-x> etc. I want to understand when to use Control ...
3 views

### Can counsel-git-grep for string search keep the history of previous searches?

In general when I run M-x and do control-p or control-n or (M-p) (M-n) I can move around the previous inputs that I provided in the past. Is it possible to achieve it in counsel-git-grep ? I am using ...
23 views

### Mode-line always shows [Compiling] after compile a tex file with typos

For some special tex with typos, mode-line always shows [Compiling] even if we correct all typos. To reproduce First compile the following correct tex by C-c C-a \documentclass{article} \usepackage{...
90 views

### dnd-unescape-uri is undefined

After updating packages from MELPA, I'm getting the message: Warning (emacs): dnd-unescape-uri is undefined. Some things may not work. It is a separate buffer. Not in the messages buffer. I can just ...
26 views

### org export with interleaved output

I have an Org mode file with the following source block in it: #+begin_src sh :exports both echo "first line" echo "second line" #+end_src #+RESULTS: | first | line | | second | ...
239 views

### Emacs on new Mac M1?

Is anyone successfully running a windowed emacs, (not terminal emacs), on one of the new Mac M1s? Does this port work? https://emacsformacosx.com Is there another?
46 views

### Scrolling lag on Linux

Emacs scrolling is lagging for me on Linux but not on macOS. I'm using Ubuntu 20 and also tried Solus but behavior is the same. Faster system helps but not enough. What so special about emacs build on ...
15 views

### How to fix: [Suspicious state from syntax checker python-mypy: Flycheck checker python-mypy returned 2, but its output contained no errors]

I keep having following warning message, even I have the recent version of python-mypy not sure why this warning message is generated; is there any way to fix this: Suspicious state from syntax ...
16 views

### Elpy shell-send-region to a particular named Python buffer

I often open up interactive python sessions particular to the project that I'm working on, and will use M-x rename-buffer to title them *Python[Project1]*, Python[Project2]`, etc. I would like to ...
32 views

### From one-line list to one element per line in python-mode

How do I turn a long one-line list, such as test_list = ['a0000000', 'b1111111', 'c2222222', 'd3333333', 'e4444444', 'f5555555', 'g6666666'] into a one element per line list: test_list = ['a0000000', ...
21 views

### How to set English as the default input method?

For some reason I cannot set english, only british as the input method. I am writing a function to switch language from spanish-postfix to english, but english is not working, only british. I have ...
20 views

### From a popup window with a list of file paths, how to open the directory containing the file rather than the file itself?

In this example, I would like to open the doc directory, not the uganda.xt file. Is there a chord or other shortcut to do this efficiently?
39 views

### How to properly auto-indent Org Mode multi-line list items?

I am typing a journal entry in org-mode as so: I worked on my English paper today, and made lots of progress. + We used Emacs for our project + Some other people used vi, but I think Emacs Org mode ...
22 views

### How to Configure AucTeX to Preview .pdf File Generated by XeLaTeX?

How can I achieve this by adding something to ~/.emacs This is my .emacs OS: Ubuntu20.04LTS (WSL) Emacs: 26.3 XeLaTeX: 6.3.2
45 views

### Is there a way to show python generated plots in the python interpreter console?

I use emacs for most python programming, but really miss the inline plot feature combined with printed output in Spyder. See picture. I've been experimenting with various interpreter settings but ...