# All Questions

15,914 questions
5 views

### Why Emacs (dired+) ask me twice to delete file?

windows 10, emacs 26.1, dired+ Suppose I want to delete (move to trash) file in dired mode. S-d emacs ask me: I press y and now it's again ask me to kill file. Why Emacs ask me twice? I want ...
9 views

### Preventing TeX-command-run-all from shifting focus

It seems that TeX-command-run-all shifts focus to the pdf window, which is quite annoying. Is there a way to prevent that?
4 views

### How to generate .eclim configuration file on project root directory

I am trying to use eclim-java-run-run function, and this error comes up: Debugger entered--Lisp error: (file-missing "Opening input file" "No such file or directory" "~/eclipse-workspace/...
20 views

### Image and text side by side in Org-mode – how to flow text around an inline image?

Images can be easily displayed inline in an Org-mode file. #+STARTUP: inlineimages * headline 1 ** headline 2 [[./dog-o.jpg]] This text should be displayed to the right of the image above. ...
21 views

### what does grave accent  and aposrophe ' do in elisp regular expression?

I use C-h v to check the doc about this variable org-agenda-file-regexp. It says it is a variable defined in ‘org.el’. Its value is "\\[^.].*\\.org\\'" What is the meaning of grave accent  and ...
30 views

### replace char at position using Emacs script

Below script will insert a char at position: #!/usr/bin/env emacs --script (defun modify(filename) (find-file-literally filename) (goto-char 3) (insert "\x39") (save-buffer 0) (kill-buffer)...
11 views

### Cannot open URL link in emacs under msys

When trying to open URL link in emacs under MSYS2 I get the error browse-url-default-windows-browser: Searching for program: No such file or directory, cygstart. Looking into the function browse-url-...
22 views

I use the same configuration of emacs on multiple machines, and I want to use use-package to keep the packages the same on all machines. I have an init file in each machine's home directory that ...
26 views

### How check that text in quotes are lowercase text

example1: test "one" hi this is test "two" check I need to "three" this example2: test "one" hi this is test "Two" check I need to "three" this Is it possible to check that text (some function) in ...
5 views

### spacemacs - rebind existing keys

I am trying to rebind j, k key as well as capital E, B and Y, but cannot get them to work. Any pointers? I put this into my .spacemacs (in dotspacemacs/user-config): (evil-define-key 'normal key-...
9 views

### Mac OSX and remote Emacs sessions, keybindings

I have questions regarding keybindings and cut & paste for Emacs and OSX v10.14.3. I'm hoping there are some Emacs users with similar configurations that can provide guidance as to be productive ...
12 views

### What's this slot-missing: Invalid slot name: “#<transient-prefix transient-prefix>”, :incompatible

After updating to magit 20190517.1750 from ELPA, I've got this warning slot-missing: Invalid slot name: "#<transient-prefix transient-prefix>", :incompatible which breaks a lot of magit ...
33 views

### How to repeatedly move forwards or backwards by a screenful of text?

I tried C-u 1 C-v, which based on the documentation should repeat C-v one time. Unfortunately, it only ends up scrolling a line instead of a screenful. Any guidance appreciated.
10 views

### user-error: That register’s buffer no longer exists

I saved point to register, closed buffer / restarted Emacs and got: user-error: That register’s buffer no longer exists I want Emacs to open file if necessary and go to point.
18 views

### How can I join these two org-templates, so that the first block can be an option between the other entries?

(use-package org :ensure org-plus-contrib) (use-package org-contacts :ensure nil :after org) (use-package org-capture :ensure nil :after org :preface (defvar my/org-...
24 views

### config hex mode to show data byte by byte

By default, the hexl mode will show binary data two bytes by two bytes as below: 00000000: 0000 0020 6674 7970 6973 6f6d 0000 0200 ... ftypisom.... Is it possible to change the style to show data ...
40 views

### Using Occur to to recursively search in a directory [duplicate]

I use 'occur' to search for regexp in current buffer and edit the results in occur buffer . Now my requirement is to search all the files in a directory(including sub-directories ) and edit the ...
28 views

### How to display a (basic) column indicator? [duplicate]

Since fill-column-indicator is no longer actively maintained, how can I visualize the fill-column? The fill-column-indicator package was quite heavy and had compatibility issues with other packages. ...
33 views

### Search files in folder

Windows 10, Emacs 26.1 dired+ I want in dired mode find files by names, content Approach#1 - use external tools. What tools you can suggest? Approach#2 - use only built-in Emacs function on ...
23 views

### org-agenda-stuck project' levels

The docs describe the stuck project's level in The Org Manual: Stuck projects The built-in default assumes that all your projects are level-2 headlines, and that a project is not stuck if it has ...
17 views

### isearch with invisible text properties, not overlays?

Q: how can I get isearch to understand invisible text properties, not just overlays? I'm writing a major mode that uses text properties rather than overlays to toggle visibility. I'd like to use ...
18 views

### How do I select 'flag' options for magit through helm?

I'm using spacemacs with helm and magit. There are some options, for example, the ability to sort log entries in reverse order, that have a flag by them. I don't know how to select any of these ...
24 views

### org-babel results with accented characters

I have a problem with the output of org-babel code blocks when this output contains accented characters. For example, if I execute this code block: #+name: test_accented #+begin_src python :results ...
10 views

### emacs-omnisharp unable to use unity project files

I'm using emacs-omnisharp to try to complete a project with Unity, but the omnisharp server doesn't seem to be able to open or use the project data. I know that the server works because I get ...
24 views

### fixed file size mode

Is there an emacs mode/package/whatever where a specific file size (and/or number of lines) is enforced in a visual way? Something like this: 1st line 2nd line where adding some text to the 2nd ...
17 views

### Force C-c to cua-copy-region

I have CUA mode enabled, but sometimes when I hit C-c, emacs simply does not copy anything because it starts to think Iam typing some C-C something command. I tried: (global-set-key (kbd "C-c") 'cua-...
28 views

### How check that all lines start by specif text [on hold]

In one buffer I has text: http11111111111 http22222222222 http11111111111 http11111111111 http11111111111 http11111111111 httptest How check that all lines start by http ?
13 views

### How to modify the jump character color displayed by evil-avy-goto-line?

The color of the jump character displayed by evil-avy-goto-line is somewhat blurred, which causes me to change the color of the displayed character or modify the color of the background strip of the ...
24 views

I'd like to make an iterator that yields pairs: (0 1) (1 1) (1 2) (2 2) (2 3) (3 3) etc. I've tried variants of the following: (iter-defun iter-rectangle-sizes () (let ((rect '(0 1))) (while ...
19 views

### ESS knitr workflow with natbib

This solution explains ESS knitr workflow and it works as explained. However, it does not explain how to knit an Rnw file containing natbib references. Similar question have been asked here and the ...
34 views

### Search across tags / titles in org mode

I keep some files in RST and rst-mode has C-c C-t C-t runs the command rst-toc which open all section titles in separate buffer. I can search ignoring actual document content which tends to have ...
14 views

### calling xref-find-definitions within lisp code

I want to call xref-find-definitions from within my own lisp code and I'm struggling. (xref-find-definitions IDENTIFIER) Find the definition of the identifier at point. It wants a parameter ...
21 views

### Can't make export of code from org

Emacs 27.050 Windows 10 Hello. I want to export python code block from my org file to the file. When executing block there is the following result: #+BEGIN_SRC python :session :results output :...
21 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 ...
21 views

### My terminal emacs displays weird characters (\u2506) for unvisiable characters in buffers

I'm currently in a new environemnt, my emacs in terminal displays weird character in files, GUI Emacs works fine. I don't know how to express this, please see the following details: Text edition: #...
50 views

### Insert date using a calendar - where other language rather than english is desired

I am interested in inserting custom dates using the calendar, I found Insert date using a calendar which turned out to be quite useful. Org calendar : change date language? seems to have no effect (I ...
22 views

### Sending code to an ansi-term via isend-mode: How to modify default buffer chosen and how to automatically open ansi-terms?

I use isend-mode (see here) to send (bash) code to an ansi-term as follows: 1) M-x ansi-term # open ansi-term 2) Open buffer with code I want to send to *ansi-term* 3) M-x isend RET *ansi-term* ...
49 views

### Evaluate some arguments to macro immediately

I am trying to call a macro (defined somewhere else; I can't change it), but I want to evaluate some of the arguments before the macro is expanded. Is this possible? For example: (defmacro foo (&...
24 views

### tramp-default-method has no effect

I have a config file to setup defaults for tramp. For the purposes of this example foo and bar are hosts defined in /etc/hosts. (require 'tramp) (setq tramp-default-method "ssh") (add-to-list 'tramp-...
11 views

### How to prevent org-resolve-clocks from exiting on wrong key/Non-character input-event?

I use org-clock-idle-time to automatically resolve on idle time. When I get back to my computer, Emacs runs org-resolve-clocks-if-idle which runs org-resolve-clocks with the idle time. This is great,...
11 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 ...
28 views

### open buffers from sr-speedbar in previously active window instead of splitting window

I'm using sr-speedbar to manage a list of buffers. After M-x sr-speedbar-toggle, I switch to the speedbar window, press b to switch into Quick Buffer mode, and then press Enter to select a buffer. In ...
21 views

### unbind ALL C-x and C-c shortcuts in org-mode with CUA-mode

For a special purpose application of emacs with org-mode I want to dramatically simplify the shortcuts. I'm already quite satisfied with my config based on CUA mode. The one thing that bothers me ...
120 views

### Find file in directory

I switched to Org Mode and Emacs few weeks ago. I find it incredibly better than my previous (simple but effective) setup based on markdown files and VS Code editor. I'm learning new features ...
6 views

### Obtaining the results of babel evaluation of docker-compose commands

this is an odd behavior which seems to happen for some docker-compose commands but not others. If I try to evaluate certain commands like #+BEGIN_SRC sh dir: . docker-compose exec app rspec #...
21 views

### Customize org-mode state change logging text

How can I edit the format of the org-mode state change logging text? Specifically I'd like to be able to log with a timestamp excluding the time like - State "DONE" from "TODO" [2019-05-...
24 views

### How to disable DocView mode (completely)?

I found here that the following disables DocView mode for a specific file type, like PDF: (add-to-list 'auto-mode-alist '("\\.pdf\\'" . fundamental-mode)) But how can DocView mode be disabled ...
40 views

### org-mode datetree forward one day in the future

At work we do standups about what we did yesterday, I'm using datetree for my org-capture but the date recorded is by default today's date, I would like to change this so the date is of tomorrow ...