All Questions

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

Yanking into a regexp isearch escapes the metacharacters

I noticed today that when I yank a string containing regexp metacharacters into an active regexp isearch, the metacharacters all get escaped. For example, if I've killed the text foo* and yank that ...
2
votes
0answers
42 views

xref unsuccessful in python buffers: “no definition found”

The command xref-find-definitions is no longer working for me in Python buffers (with elpy-mode enabled. Its companions, such as xref-find-references, are also not working in Python buffers. ...
0
votes
1answer
42 views

Changing language with ispell

M-x ispell works fine for English. However, when I try to change the dictionary, I run into difficulties. I did M-x ispell-change-dictionary and selected one of the options (francais) from the list ...
0
votes
1answer
36 views

How to stop ivy-switch-buffer from trying to connect

I'm using ivy-use-virtual-buffers to see both currently and recently visited buffers in Swiper's ivy-switch-buffer and it worked great until last month when I opened distant files via ssh/Tramp. Ever ...
0
votes
1answer
28 views

Tramp hangs indefinitely when using doas on Linux

Tramp works fine when I try to edit with sudo or ssh, but when I try to edit with doas it will hang (while also maxing out my cpu). Here is some tramp output: backtrace() tramp-signal-hook-...
0
votes
1answer
20 views

Meta key sending some commands two times over Citrix VDI

I am using Emacs 26.1 on a Windows machine that I connect to via Citrix Viewer running on MacOS 11.1. I'm using left-option as my meta key. When using org-mode, the meta key is behaving inconsistently....
0
votes
2answers
47 views

How to know the list of possible commands when in a session?

For instance: When I am in C-c C-e (export), by pressing # you get extra options. How to know this? Another example: When in a helm session, by pressing C-c C-f, you activate helm-follow-mode. But ...
0
votes
0answers
61 views

Latex and Emacs

I have tried to export to Latex an Orgmode document that has some unicode characters not recognized (emojis). When compiling I get the error ! Package inputenc Error: Unicode character 🔥 (U+1F525) (...
0
votes
3answers
46 views

Why isnt `(require 'use-package)` triggered when I open Emacs?

So, here is my init.el: (add-to-list 'load-path "~/.emacs.d/site-lisp/use-package") (require 'use-package) (with-eval-after-load 'info (info-initialize) (add-to-list 'Info-directory-...
1
vote
0answers
26 views

elpy-goto-definition doesn't work when jedi:goto-definition does work

After installing a fresh install of emacs on a coworkers machine, I got elpy setup with all the correct packages according to elpy-config but elpy-goto-definition always returns 'No definition found'. ...
0
votes
0answers
24 views

SPC i s not working

As if there was any need to make it clear, I am quite a noob when it comes to spacemacs. I am running into the following issue: I am trying to follow some tutorials online. In various of them, SPC i s ...
0
votes
0answers
32 views

w3m view image under a point in an external viewer not working

I try to view image under a point in external viewer by w3m-view-image, but when I call it I get in the *Messages*: zsh:1: no matches found: accept_media=*/* How can I make it working? I use: macOS ...
2
votes
1answer
39 views

How to replace the first element of the `kill-ring` by a modification of it?

I am trying to modify the string that is to yanked My goal is to modify certains paths before yanking, in order to transform them in relative to path actual buffer file. Following this post, I tried ...
0
votes
0answers
21 views

Autoloading of evil fails: failed to define function evil

I get the error: run-hooks: Autoloading file /home/xxxx/.emacs.d/elpa/evil-collection-20210203.811/modes/unimpaired/evil-collection-unimpaired.elc failed to define function evil at startup. Here is ...
0
votes
0answers
21 views

Org referencing title on #+HTML_HEAD_EXTRA

I have the following Org files: main.org #+TITLE: Main Document - Draft #+SETUPFILE: ../themes/main-theme/main-theme.setup * Test 1 main-theme.setup (CSS already loads correctly for HTML exports). # ...
0
votes
1answer
33 views

Can't evaluate plantuml in org-mode blocks

I have this weird error I don't understand : #+begin_src plantuml :file img/example-uml.png @startuml class Example { - value : Integer - other : Double + up() + down() } @enduml #+end_src This fails ...
0
votes
1answer
35 views

Toggle between relative and absolute line numbers: Lisp Syntax

I need to define a function that toggles between value of display-line-numbers but can't figure out what's the correct lisp syntax to do so. Here's what I want to do: Check if value of display-line-...
0
votes
0answers
26 views

Emacs-26 Big Sur (Intel) 11.2 - make fails error 137 macroexp.elc

Xcode: 12.4.0.0.1.1610135815 CommandLineTools: 12.4.0.0.1.1610135815 I've exported CC=clang, but I can't get the emacs-26 branch to compile on my Big Sur Intel machine. See gist here .autogen.sh and ...
1
vote
0answers
32 views

How to specify that a package uses my key bindings

For example, I use M-s as isearch-forward: (global-set-key (kbd "M-s") 'isearch-forward) When I try to install isearch+ with use-package: (use-package isearch+ :straight t) I get the ...
0
votes
1answer
30 views

How to make helm follow and show files as I type?

My Emacs used to have the ability to display the help buffer of each function everytime I was scrolling through M-x function candidates. How to enable it again? Thanks!
1
vote
2answers
79 views

How to evaluate a list containing strings or un-evaluated blocks into a string? (like format-mode-line)

The mode-line-format can be a list of strings, but it can also include un-evaluated blocks, e.g: (setq mode-line-format (list "Hello" '(:eval (my-function-call)) "There&...
0
votes
0answers
13 views

How to run my own hook that accumulates the result of each call?

I would like to define my own hook, where the result of each caller is collected (when the hook is run). Is there a way to do this? Currently I pass in a function to the hook, that function can be run ...
0
votes
1answer
42 views

my rust analyzer don't work on emacs 27

I recently installed the latest version of emacs and Rust-analyzer, and downloaded the lsp-mode package as well, but when I activate the rust-analyzer with the "lsp" command it simply ...
1
vote
1answer
16 views

[up/down]case-region: Skip read-only text; Operate on read-write text; No Error

The buffer contains a mixture of text that is read-only (with 'read-only text properties) and read-write (i.e., no 'read-only text properties). I want to [up/down]case-region as to the read-write ...
1
vote
1answer
30 views

Can you split rx into multiple variables and concatenate the evaluation

I have a really useful regex for extracting DCOs: (defvar my-dco-tag-re (rx (: bol (zero-or-more (in blank)) ; fresh line (any "RSTA") (one-or-more (in alpha &...
0
votes
0answers
48 views

Placing auto-saves in a different folder doesn't work

I am working on my personal emacs config and I wanted to keep .emacs.d/ uncluttered. So I created a temp folder inside .emacs.d/ that includes a backup directory. This part works fine. Also sending ...
0
votes
0answers
10 views

Automatic insertion of the parameters of a function as placeholders when auto-completing

I am kind of new to Emacs, in the sense that I never used for serious development. I was trying to build a configuration in order to start a larger C++ project, and there is one point in particular ...
0
votes
1answer
25 views

How to disable multiple elpy keybindings?

There are multiple elpy keybindings that I am not using. Is there any way to unbind them? Possible bindings that I want to disable C-c C-t, C-c C-p. I have tried following answer Globally override key ...
0
votes
1answer
24 views

Org-mode navigate in list

How to navigate in same level list, with sub list in between? - one (cursor at the beginning) - two - three - four (move to this list) Tried C-up and M-a, but they go through each sub level, ...
0
votes
1answer
34 views

MAGIT: “precomposed unicode is not supported”

I am trying to commit in my Emacs folde, and I get this message below: "precomposed unicode is not supported". I have run on my Terminal "git config core.precomposeunicode false" ...
0
votes
0answers
31 views

What's the difference between ' (quote) and ` (grave accent) [duplicate]

I've seen both used to quote symbols and list. What's the difference between them? When should I use one or the other?
2
votes
1answer
38 views

How do I focus the Man mode window when it is displayed?

When I open a man page (e.g. M-x man cat) I would like to automatically move my cursor onto the man page. I already know how to achieve this behavior for *Help* and *Apropos*, and I want to get the ...
0
votes
1answer
34 views

How to copy a function?

If I get the function definition with (setq wrapped-copy (symbol-function 'fn)) how can I make a copy such that I can redefine the same function with a wrapped version? like (fset 'fn #'(lambda () (...
0
votes
0answers
42 views

How to insert current time (hh:mm) in org mode without date

How can I insert the current time (format hh:mm) in org-mode without a date, i.e. just the time?
0
votes
0answers
19 views

Incompatible Packages w/ 26.3 and MELPA

I know I must be missing something simple, but I've recently upgraded my Linux OS to Mate 20.04. As a result, my version of emacs is Emacs 26.3. I'm now running into incompatibility issues with MELPA ...
2
votes
2answers
47 views

Call apply with a macro

Is there a way to expand a macro using a list of arguments? I tried using apply but then I get an error that the "function" my/x-becomes-nil is invalid. (defmacro my/x-becomes-nil (variable ...
0
votes
1answer
52 views

How to checkout a specific commit using Magit?

When using M-x magit-checkout, I can only select a branch. Is it possible to visit a commit (the stage at the commit) using Magit? Thanks!
1
vote
1answer
62 views

How to use Magit to git log / git grep to find expressions across all previous commits

I am using Magit and was wondering how to revert to a specific commit that contained a specific expression. First I need to find the expression across all commits content. How to do this? In command ...
0
votes
1answer
42 views

Invalid function in font-lock-fontify-keywords-region [duplicate]

Why do I get the error: font-lock-fontify-keywords-region: Invalid function: (concat "\\\\" (regexp-opt (quote ("cs" "hepth" "hepph" "heplat" "...
0
votes
1answer
38 views

User emacs has no home directory

I am an emacs newbie running emacs doom on Linux. I am learning how to use traditional emacs in my free time and have an emacs config file that I want to test out. I launch my traditional emacs by ...
1
vote
0answers
17 views

APIs to create a custom issue list on Magit Forge?

Using Magit Forge, I'd like to organize a list of open issues by assignee. Ideally I'd like to display them in groups by assignee, but I'd settle for a single list if the assignee were added to the ...
1
vote
1answer
34 views

orgmode - calculate difference between two remote tables

I use below code to calculate the difference between two columns from remote tables but the output is all zero! #+name: tbl1 | x | | 1 | | 2 | | 3 | #+name: tbl2 | y | | 1 | | 1 | | 1 | #+name: ...
1
vote
1answer
28 views

How can I associate a schema with a json file using lsp-mode/lsp-json

If you read the documentation for lsp-mode-lsp-json here, this is the section that deals with setting schemas: Available configurations lsp-json-schemas Default: nil Associate schemas to JSON files ...
1
vote
1answer
61 views

Adding unicode special characters

I wanted to add a latin capital O with circumflex [ô] to a file in emacs, but for some reason all my attempts lead to the character being replaced by a question mark ?. I tried : M-x insert-char ...
1
vote
0answers
46 views

How can one debug a situation when emacs is unresponsive on Windows?

There is an operation in my setup which makes emacs unresponsive with high CPU. I checked the emacs process with process monitor, but it does not wait for an other process, so I guess it must be ...
0
votes
0answers
13 views

Temporary input-decode-map while inputting key sequence

I want all sequences like C-c C-p to be translated to C-c p and even C-x C-k C-e should become C-x k e. This is easily done with e.g. (define-key input-decode-map (kbd "C-p") (kbd "p&...
0
votes
2answers
51 views

How do I move the cursor to the *Warnings* buffer whenever there is a new warning?

I want to focus the *Warnings* buffer whenever there is new warning. I tried this: (add-hook 'special-mode-hook (lambda () (when (string= (buffer-name (current-buffer)) ...
0
votes
1answer
42 views

Problems with FTP connection via Tramp

I try to create FTP connection via Tramp, but the output I get on AngeFTP is: ftp> open android.local ftp: Can't connect to `192.168.0.21:21': Connection refused ftp: Can't connect to `android....
2
votes
1answer
51 views

How to highlight back-tick quoted strings in code-comments?

Since back-ticks are often used for literals, is there a way I can highlight these in code comments? So this: # This is a comment, this is a literal: `4 + 4`. # let's make things interesting (`...
1
vote
0answers
19 views

How to change counsel grep options once activated? (counsel-rg, counsel-git-grep … etc)

I would like to have the ability to change the flags passed to grep once counsel-rg has been stated. For example, sometimes I start counsel-rg and type in a string that needs a lot of escaping. In ...

15 30 50 per page
1
3 4
5
6 7
421