All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Unable to bind `C-k` in comint / inferior-python mode

I want to use C-k to go to previous input when using the Python REPL. I'm using doom emacs. I have this in bindings/+python.el: (map! :after python :map inferior-python-mode-map "C-j" :i #...
tsorn's user avatar
  • 151
0 votes
0 answers
4 views

Projectile GDB Remote I/O

Trying to debug a remote application. On a different architecture system and have the I/O flooding my GUD command window. I'm wondering how I can launch gdb or configure GUD in a way to get the remote ...
Alec Cox's user avatar
0 votes
0 answers
8 views

How do I write a function to copy a region to the MacOS clipboard?

I'd like to be able to mark a region in a text buffer, hit an F-key, and have the contents of the region copied into the MacOS clipboard. From the shell you can do this by piping the text into the ...
Chap's user avatar
  • 177
0 votes
0 answers
14 views

For integer org-property SWAY, how can I normalize all agenda todos between 1 and 100?

In my org-agenda files, todos have a property called SWAY, which is an integer and it can be between 1 and 100 000. How can I normalize them to be between 1 and 100?;)
Jason Hunter's user avatar
0 votes
0 answers
29 views

Comment or uncomment a single line in Emacs

I'd like to have an emacs-lisp function that comments or uncomments the line the cursor is on. At the very least, it needs to work in latex-mode and emacs-lisp-mode, as well as in org-mode inside ...
Addlai's user avatar
  • 113
0 votes
1 answer
11 views

How can / should I report an apparent bug in ansi-term handling embedded vim processes?

As a regular vi user, I have been using Emacs in Evil mode and ansi-term to use Emacs as a terminal and editor that will display proportional fonts as proportional fonts. I am reaching 99% ...
Christos Hayward's user avatar
0 votes
0 answers
10 views

kill-buffer: Symbol’s function definition is void: comint-write-input-ring

I'm getting the error kill-buffer: Symbol’s function definition is void: comint-write-input-ring on startup. I have this in my config.el (I'm using doom emacs), I don't know if it matters. (defun ...
tsorn's user avatar
  • 151
4 votes
1 answer
187 views

Variable scope issue in scratch buffer?

I encountered an issue with the following code, provided by NickD as an answer to a previous question (link to the question): (defun my-add-string-to-list (LIST-VAR STRING) (add-to-list LIST-VAR ...
Gabriele's user avatar
  • 1,608
1 vote
1 answer
36 views

`C-h m` help doesn't show global minor modes?

I want to define a minor mode whose global arg is set to t. To make sure the mode is actually active, I call describe-mode by typing C-h m. However, as soon as I add :global t the mode does not show ...
Olmo's user avatar
  • 111
0 votes
0 answers
10 views

How to expand yas-snippets in eshell (under Doom)

(This may have nothing to do with Doom-emacs, but because I use it, I should mention it) The famous "for-loop" expansion (https://xenodium.com/yasnippet-in-emacs-eshell/) does not work for ...
jeffkowalski's user avatar
0 votes
1 answer
27 views

How to change the formatting of current date in Org agenda

How can I change only the format of current day (using Doom Emacs). What I have: Saturday 20 April 2024 Sunday 21 April 2024 Monday 22 April 2024 W17 Tuesday 23 April 2024 What I want: ...
Random's user avatar
  • 1
1 vote
1 answer
14 views

An Info Index link that can be reached via ^X^E

https://www.gnu.org/software/emacs/manual/html_node/emacs/Unibyte-Mode.html corresponds to (info "(emacs) Unibyte Mode")^X^E So what does https://www.gnu.org/software/emacs/manual/html_node/...
Dan Jacobson's user avatar
0 votes
0 answers
11 views

is there any way to use a standard/built-in terminfo (vt100, ansi, xterm..) for a terminal

https://www.gnu.org/software/emacs/manual/html_node/emacs/Terminal-emulator.html says Term mode recognizes and handles ANSI-standard VT100-style escape sequences, which are accepted by most modern ...
Alex028502's user avatar
0 votes
1 answer
15 views

correct elisp code to create frameset registers?

If I evaluate this: (frameset-to-register "r") then r is created as an empty register (try to jump to it afterwards!), whereas I'd like it to contain the frameset configuration just like C-x ...
user43824's user avatar
0 votes
1 answer
20 views

proper syntax for funcall to frameset-to-register

I tried to evaluate the following, but a strange message appears (*) and the register ends up being empty: does anyone know why? (funcall #'frameset-to-register "r") (*) #s(frameset-register ...
user43824's user avatar
0 votes
0 answers
22 views

error message from compile command in Emacs 29.3

The latest Emacs update GNU Emacs 29.3 (build 1, x86_64-slackware-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2024-03-24 prints an error message emacs: writing to child signal FD: ...
3Tom's user avatar
  • 1
0 votes
0 answers
11 views

Configure default build and run commands in projectile (on a per-project basis)

In a CMake project, how do I set the default commands to compile or run a project? (e.g. what shows up when I hit C-c p c)? I know there is a ".projectile" file that can be placed at the ...
user52366's user avatar
  • 131
0 votes
1 answer
10 views

Chinese Chromebook character entry

https://www.reddit.com/r/Crostini/wiki/enable-chrome-shortcuts-in-linux-apps/ with the addition of <Control>space allows me to use the native ChromeOS input method to type Chinese, into all ...
Dan Jacobson's user avatar
2 votes
1 answer
25 views

After refactoring elisp code, is there some help in finding unused code, mostly functions and variables?

Dealing with a one-file elisp package, I wonder if there is a nice way to see unused functions and variables after some major refactoring. I can go through the code and do xref-find-references. But ...
Harald's user avatar
  • 318
0 votes
2 answers
56 views

Using add-to-list with a list passed as a function arg

I need to build a function that, among other things, modifies, using add-to-list, a list that is passed as an argument to the function itself. I understand that the list passed as an argument is ...
Gabriele's user avatar
  • 1,608
0 votes
1 answer
12 views

How can I find the cookie file fortunes.u8 online?

When I run M-x cookie RET on my installation of emacs (GNU Emacs 29.3 build 3, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version 1.16.0) - installed from source on Linux Mint 20.3 - I get the ...
harlandski's user avatar
0 votes
0 answers
12 views

desktop-save-mode does not restore org-agenda buffers when running Emacs as daemon

I run Emacs as daemon and have the following to save/restore my buffers/frames. It works fine (need to save-buffers-kill-emacs instead of C-x C-c to get the buffers to be saved then buffers are ...
David Shields's user avatar
0 votes
1 answer
42 views

In Magit how can I see the difference a commit make to a file?

In Magit it is easy to see what difference a local file has compared to its checked-in version (HEAD). However once I received changes from others (via magit-pull), I would like to see what changes ...
halloleo's user avatar
  • 1,341
0 votes
0 answers
24 views

The `'append` argument for `set-fontset-font` doesn't work

After reading Modifying-Fontsets, I started trying out the fontset fallback mechanism in Emacs 29.3. (set-face-attribute 'default nil :font (font-spec :family "Courier New" :size 24)) (set-...
chansey's user avatar
  • 133
3 votes
1 answer
35 views

In org-mode, can one evaluate source code blocks inside a latex equation?

I would like to do something like: \begin{equation} x = src_R{x} \enq{equation} so that the current value of x in the R session ends up in the exported document. However, org-mode does not seem to ...
Stefano's user avatar
  • 173
1 vote
1 answer
36 views

What is the difference between giving, e.g., :test 'eq and :test #'eq as arguments to make-hash-table?

Like many functions handling collections of elements, make-hash-table accepts a :test option. The docstring states that TEST must be a symbol, and that 'eq, 'eql and 'equal have predefined meaning. ...
phs's user avatar
  • 1,239
0 votes
0 answers
33 views

Interacting with Okular (backward search)

I use Auctex to edit my LaTeX files. I've configured Auctex to use Okular as my PDF viewer, and I've configured Okular to use Emacs (emacsclient) as its editor. When I compile a source file with C-c C-...
gboffi's user avatar
  • 614
1 vote
1 answer
32 views

Why does shell-mode truncate ps output?

Startup a fresh GTK emacs with no config with emacs -Q. Then run M-x shell. Then at the prompt: $ ps -ef Long commands will be truncated to the frame width, like this: root 526315 2 0 15:...
Joseph Garvin's user avatar
3 votes
1 answer
33 views

How can I override character ranges in 'default font'?

There are two widely used interfaces that can change fonts in Emacs: set-face-attribute set-fontset-font. If I understand correctly set-face-attribute can set main font (or default font) and set-...
chansey's user avatar
  • 133
1 vote
1 answer
32 views

Setting default font to Inconsolata doesn’t work in Emacs 29/macOS

Using macOS Sonoma on M1 Mac Mini and M1 Air. Emacs from https://emacsformacosx.com. I have Inconsolata installed in ~/Library/Fonts/, validated by Font Book. My .emacs calls up .emacs-custom.el, at ...
Simon Wright's user avatar
1 vote
1 answer
29 views

Setting gud-gdb-command-name in .dir-locals.el

For my current project I have been trying to configure it so I don't need to explicitly type compile and debug commands each time I start a new emacs session. In my .dir-locals.el file I have: ((nil . ...
James Snook's user avatar
0 votes
1 answer
29 views

Command to fold all "properties" drawers in file

I’m looking for an interactive command that would fold / unfold all the :PROPERTIES: drawers in an org file. I’m sure this command must exist, I just can’t find it – and I’m curious to how you did ...
kotchwane's user avatar
  • 515
0 votes
0 answers
13 views

emacs in a jupyter terminal

I'm using Emacs in a Jupyter Lab terminal through a browser. Unfortunately, some of my favorite commands C-s for search and C-w for cut are being intercepted by the browser and not being sent to the ...
NNN's user avatar
  • 101
1 vote
0 answers
15 views

Add preprocessor like prefix for C/C++ indentation

I want to extend the existing indentation capabilities for macro constructs which behave like preprocessor directives. Consider the following code example: void fkt() { const int a = 0; MY_MACRO(...
theldoria's user avatar
  • 1,845
0 votes
0 answers
12 views

How can I find all recent todos with a specific tag?

I want to find all todos which has its CREATED property not more than ten days ago. Also, the todo has to be tagged "family". I'm playing with this, but it's not really working sorting by ...
Jason Hunter's user avatar
0 votes
2 answers
17 views

package.el can't install lsp-mode and now can't upgrade packages anymore

I tried to install lsp-mode from MELPA, but get the following error message: run-hooks: Cannot open load file: No such file or directory, lsp-mode So I thought I'd upgrade my other packages and try ...
Alexander Praehauser's user avatar
1 vote
1 answer
18 views

Run ansi-term in a new frame

I have the following in my .emacs : (add-to-list 'display-buffer-alist '("\\`\\*e?shell" display-buffer-pop-up-frame)) And it opens shell or eshell buffer in the new frame when I run M-x ...
Mark's user avatar
  • 175
0 votes
1 answer
26 views

require can't find file that do exist

I'm setting up Emacs on a work laptop with my old config file. And I have problem installing Copilot. I cloned the repo in ~/projects/emacs-modes/copilot.el directory: I've added: (add-to-list 'load-...
jcubic's user avatar
  • 743
1 vote
1 answer
28 views

Split the emacs screen into 2 windows side-by-side, with a different buffer in each window?

I'm trying to split the Emacs screen into two windows side-by-side (for example, the way that split-window-right does it), but I want a different buffer shown in each side. For example ... (get-buffer-...
HippoMan's user avatar
  • 616
0 votes
0 answers
11 views

Composing a message with mu4e doesn't add the To/From and other required fields

I get an error message-position-on-field: Search failed: "^--text follows this line-- and the message itself does not have the required fields that should be added through message-mode. I use the ...
guibor's user avatar
  • 121
0 votes
1 answer
47 views

How do I apply a command or macro to text that matches a specific pattern?

I use Vim a lot, but now I've decided to switch to emacs. Here is one of my questions: How do I apply a command or macro to text that matches a specific pattern? Or did I use emacs correctly below? ...
Stephen's user avatar
1 vote
1 answer
47 views

How can I get ElDoc to show documentation for the thing at point using a manual trigger?

I'm trying to figure out how to get ElDoc to show documentation for the thing at point with a manual trigger. What I would like is to be able to set eldoc-idle-delay to some high number and then bind ...
d.breve's user avatar
  • 11
0 votes
0 answers
3 views

Configuring lsp-java jdt.ls to write its files outside the project

Is there any configuration in lsp-java to setup jdt.ls to not create .project, .settings, bin etc files at the root of the repo being built? I'd like to have those setup instead in the workspace ...
benleis's user avatar
  • 21
0 votes
1 answer
20 views

How to have 'emacs' behave like 'find-file' within vterm?

I know that such a thing is possible within eshell; however, I am now using vterm, and I'd like for when I type emacs for it to be as if I typed find-file. For example, for eshell, you could do alias ...
user129393192's user avatar
1 vote
1 answer
40 views

Setting a META key for Emacs in Terminal on MacOS while still able to access special characters

I am using Emacs version 29.3 on macOS 14.4.1. I have installed it with home-brew from casks. I have the classic META key problem. I need to have a META without using ESC. Since I am not used to ...
sçuçu's user avatar
  • 295
0 votes
0 answers
12 views

Rmail and IMAP 2FA

Is it possible and what is the current state of integration of 2FA (for example, via TOTP) with Rmail IMAP (movemail) ? I couldn't find anything online but my organisation made 2FA compulsory for IMAP ...
user43824's user avatar
1 vote
0 answers
51 views

how to get emacsclient to behave like emacs?

I don't like that emacsclient keeps buffers open. Is there a way so when I C-x C-c out of a session, it behaves like a regular emacs instance and kills all associated buffers? It'd also be nice if ...
user129393192's user avatar
0 votes
0 answers
25 views

every time I run python code I get message sent: and the first line

hello I am trying to run python application on Emacs as an IDE I installed pyel and pyright from pip and package installer but now some time the result is showing and sometime it is not trying to push ...
islam's user avatar
  • 1
0 votes
0 answers
21 views

Why would this custom org-num-format-function causes a warning when org-latex-preview called?

What I'm experiencing: A custom org-num-format-function causes org-latex-preview warn when it called. Exact warning I'm getting. ⛔ Warning (org-element-cache): org-element--cache: Org parser error in ...
Garid's user avatar
  • 641
0 votes
2 answers
28 views

Printer set up. Wrong type argument: listp

I use Emacs 29.3 on an M1 Mac Mini with OS 14.4.1. I'm trying to set up PS printing. I picked up the name of my printer from lpstat. I copied the following code, verbatim, to my init.el from the ...
PhilC's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
543