All Questions

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

Make undo during I-search revert last call to ding

Entering a failing search string during I-search triggers a call to ding(). If this happens during a macro recording that ding when the macro is being played will abort the macro which in turns ...
0
votes
1answer
35 views

How to remap C-w to quit emacs without saving?

Similar to how I close tabs in Chrome, I would like emacs to behave as if I pressed C-x C-c when I press C-w alone. Is that possible? I don't care if C-w was previously used to do some command. I am ...
0
votes
1answer
24 views

Trouble rendering lilypond source block in org-babel

I am relatively new to org mode and, as someone who enjoys writing about music, i decided to try org-babel-lilypond. I use MacOSx Monterey. I have lilypond installed via Macports, as was recommended ...
1
vote
0answers
34 views

Using define-word

I want to use dictionary on emacs and found define-word. I downloaded it and wrote the following setting in init.el. But, I can't use this and any word return 0 definitions found. Are other settings ...
0
votes
1answer
27 views

How to know (in Elisp) what buffer was current when a command is invoked?

I want to give an arbitrary command some buffer-local behavior without advising it. (I can do it by advising, but I want to also be able to do it without advising.) E.g., just looking at some ...
0
votes
1answer
21 views

Disabling syntax highlighting for specific keywords baked into an optimized regexp

I'm working on a project in Racket, and the syntax highlighting in Emacs' racket-mode is becoming an issue for me. Racket is a highly modular language, and one of the modules that I am not using ...
0
votes
1answer
11 views

global-set-key hotkeys not updating after reevaluating .ercrc.el file

I am working on configuring ERC. As a starting point I'm copying portions of the sample configuration file. So my .ercrc.el file begins with something this (taken straight from that guide): (global-...
1
vote
1answer
21 views

How to update beg end with comment-region

Scenario: I have Emacs open with split window. Top window contains an R script. Bottom windows has the interactive R session. I want to be able to copy a region from the interactive window to the ...
0
votes
1answer
71 views

Org publish does not load Latex packages

I need the following two packages and I add them to my org file like this, #+LATEX_HEADER: \usepackage{siunitx} #+LATEX_HEADER: \usepackage{cancel} but this does not work. How can I fix this? I tried ...
1
vote
1answer
35 views

dired-do-delete fails to delete file

In Dired, with point on a file name, I invoke dired-do-delete and confirm. The line disappears, as it normally does when a file is deleted. But the file is not in fact deleted, as I can see by e.g. ...
1
vote
1answer
187 views

isdigit in elisp

I wanted to check that char is a digit by comparing its code with codes of 0 and 9, presuming that the digits codes are contiguous in code table: (let ((char ?\e)) (if (and (>= char ?\0) (<= ...
1
vote
0answers
26 views

How can I get Emacs 21-style file-name completion in GNU Emacs 25.1.1?

How can I make file-name completion in GNU Emacs 25.1.1 act like it did in version 21.x.x? There are a few things that bother me: The *Completions* buffer opens up in a custom fit-to-content window. ...
1
vote
0answers
16 views

Setting R's `source()` options used by ESS

I'm trying to figure out what to add to my .emacs settings file to get ESS to include an option and setting when sending highlighted code to R. Specifically, I want to set source(max.deparse.length=...
0
votes
0answers
20 views

Insert path into buffer with vertico.el

I have recently switched from ivy to vertico for the file completion menu system (the new default in doom). Sometimes I want to insert the full path to a file into the current buffer (for example ...
0
votes
0answers
29 views

Org Mode bullets indentation display differently between normal and server mode

Does anybody has any clue why the same configuration yield different appearances between normal vs server-mode ? Here's the normal mode (the correct one) And here's when run Emacs in server-mode (...
0
votes
0answers
26 views

How to use org-tag-persistent-alist AND per-file dynamic tags

Reading the org manual about setting global/per-file tags, I wonder if it is possible to use org-tag-persistent-alist AND per-file dynamic tags. When using org-set-tags-command, I’d like to select ...
2
votes
0answers
27 views

Can word-wrap / visual-line-mode have different right margins per paragraph?

When visual-line mode is enabled, words wrap at the window edge. When the window is wide, this makes much too long of a line for comfortable reading. To fix that I have found visual-fill-column-mode, ...
2
votes
1answer
82 views

Highlight words appearing once within a block

I want to highlight every identifier (a sequence of characters matching a certain regexp or, even better, having the default face) appearing once within a block of code (a piece of arbitrary text ...
1
vote
1answer
31 views

Defining color for "$"variable in bash

Unfortunately the dollar-sign in variable-names in the syntax-highlight is in the theme I use defined as 'default' face instead of being part of the variable name. Is there a way to customize this?
0
votes
1answer
44 views

How can I apply `noqa` in order to ignore warning messages when lsp-mode is enabled

I am trying to ignore flycheck warning messages, when lsp-mode for the python-mode is on. I have tried ["# noqa", "# NOQA", "# flake8: noqa", "# type: ignore"] ...
0
votes
1answer
23 views

How to export the scheduled date to taskjuggler

Having (require 'ox-taskjuggler) in my init.el and hitting org-taskjuggler-export-process-and-open in foo.org renders the current date instead the expected scheduled date. Content of foo.org *** Foo ...
0
votes
0answers
35 views

Autogenerate HTML files out emacs help

Am I right to say that the content I read when doing C-h f foobar (or something like that) is read directly from the lisp sources? In Python I would call it docstrings. In Python I can use Sphinx, ...
0
votes
0answers
16 views

Cannot change font size in org-agenda in fresh emacs installation

After running this in my shell: $ sudo dnf -y remove emacs $ sudo dnf clean all $ rm -f ~/.emacs $ rm -r ~/.emacs.d $ sudo dnf -y install emacs $ emacs foo.org # existent file Then, within ...
0
votes
2answers
15 views

Unable to remap mouse under dired in macos emacs

I'm not sure whether this should be considered an appropriate post for emacs.stackexchange, or whether this should go to some sort of macos forum. Please let me know if I need to ask the following ...
2
votes
0answers
26 views

Distinguish expected from erroneous end-of-file in read function?

What is the correct way to use (read (current-buffer)) to read from a buffer until the end of the file is reached? When no forms remain in a buffer, Emacs signals an error: (with-temp-buffer ...
0
votes
0answers
27 views

Why does straight have .elc files inside straight/repos/straight.el

My config for straight.el is pretty standard ;; Disable package.el in favor of straight.el (setq package-enable-at-startup nil) ;; Bootstrap straight.el (defvar bootstrap-version) (let ((bootstrap-...
0
votes
0answers
32 views

How to set Variables in config.el [duplicate]

I would like to use a color-palette in my theme-file... there it is: (deftheme TEST) (let ((col1 "red" ) (col2 "blue" )) (custom-theme-set-faces 'TEST '(cursor ((t (:...
0
votes
1answer
62 views

Which-key: change next/previous page keybindings

This question has been edited thanks to dalanicolai. I want to change some of the default which-key key binds used to turn the pages. In which-key.el they are set like so: (defvar which-key-C-h-map (...
0
votes
0answers
15 views

Proof general: Symbol’s value as variable is void: coq-prog-args

I'm trying to proof-assert-next-command-interactive, but get the following error in *Messages*: proof-activate-scripting: Symbol’s value as variable is void: coq-prog-args. I haven't found an ...
0
votes
0answers
48 views

How could I go about syncing my org files with Apple Notes?

I'd been using Apple Notes to keep track of pretty much everything by linking notes together with iCloud links until recently when frustration with the extremely limiting functionality of Notes led me ...
2
votes
1answer
27 views

How to switch windows to specific visible buffer?

Is there a command that allows me to have my cursor switch windows to a specified buffer? Something that looks like (switch-to-specific-window-command "buffer-name")
1
vote
1answer
21 views

Setting new values in `org-refile-target` not working

I'm trying to add a new file foo.org and delete an old bar.org from the org-refile-target variable. So doing (setq org-refile-targets (quote (("~/foo.org" :maxlevel . 2)) should work by ...
0
votes
0answers
18 views

Capture template for org-roam-bibtex to keep notes in single file

As the title says, I want to setup org-roam-bibtex so that I can capture notes for different papers/articles in a single file. (I've asked iterations of this on the org-roam discourse page and on the ...
3
votes
3answers
262 views

`C-h` without knowing the type of an object

When someone use the Emacs inbuild help via C-h she/he has to know and understand if the object of interest is a function (C-h f), a variable (C-h v), a package (C-h p) or something else. The ...
1
vote
1answer
19 views

defcustom not appearing in Customize UI

I have a problem that variables defined with defcustom in elisp files under ~/.elisp do not appear in the Customize UI. In particular, I use word-count-mode from https://github.com/tomaszskutnik/word-...
1
vote
1answer
18 views

How to multi-word search

When I use swiper to search inside a buffer I can use multiple search words separated by a blank space. This works. But I also want that behaviour when search for a file (C-x f), a variable or ...
0
votes
1answer
38 views

İmage caption problem

I use org-mode publish, and it all works great but I have this small problem. I use this format to insert images: #+CAPTION: Cavendish deneyinin özgün analizi #+...
0
votes
1answer
30 views

Two functions run on the same org-export filter; first has no effect

I'm passing more than one headline filter function to a BIND inside my org file, and I can't see why only the second seems to have an impact: #+BEGIN_SRC emacs-lisp :exports results :results none (...
1
vote
1answer
32 views

Failed to download ‘melpa-stable’ archive. GnuTLS : Contacting host: 443

I am trying to install packages/modes from melpa on my emacs27.1, but I am unable to do so. If I run M-x package-refresh-contents , I get the following error : Importing package-keyring.gpg...done ...
0
votes
1answer
19 views

Change indent for function calls in Emacs Lisp?

While writing the question I found a viable workaround solution for myself, so I am posting it as Q&A. I am leaving the question open, because my workaround does not allow to set the amount by ...
1
vote
1answer
66 views

Shift+Ctrl+arrow to enlarge and shrink windows does not work in org-mode

Similarly to what is described here, org-mode overrides C-S-<arrow> key-binds which, in order to control the size of the windows, I have defined as follows: (global-set-key (kbd "S-C-<...
0
votes
0answers
20 views

Symbol's value as variable is void: tramp-remote-path

I'm trying to configure a remote path when using tramp. I have added (add-to-list 'tramp-remote-path "/root/.cargo/bin") to my init.el I get the following error: Symbol's value as variable ...
0
votes
0answers
8 views

Can adaptive-wrap be made to wrap to the start column of inline comments?

IN A NUTSHELL In an emacs buffer containing code (and subject to the relevant major mode), where some lines have long in-line comments, is it possible to have the adaptive-wrap package do its job with ...
1
vote
0answers
42 views

Consistently change the background color of the echo area

I want the echo area to have a black foreground (for the characters) and blue background. The echo area is the very lowest line in the standard emacs interface, below the mode-line. If there was just ...
0
votes
0answers
26 views

How to replace unicode in emacs?

I'm using spacemacs, and am wondering how you do certain commands like replace and align with respect to unicode (particularly relevant for Agda development). For instance, → has the \to shortcut in ...
0
votes
0answers
23 views

Cygwin ctrl-number not working (in cli emacs)

Originally posted to superuser. Cygwin ctrl-number is not working in cli emacs. I disabled the mintty options for keyboard shortcuts, so now ^- does work the same as ^u -1. Still, ctrl-number ...
2
votes
0answers
17 views

Debugging for Elisp threads?

Let's say some package does (make-thread (lambda () (message "Started thread.") (error "Fit happens.") (message "Finished thread."))) Regardless of M-x ...
0
votes
0answers
24 views

How to deal with "No TeX trees available; configure ‘TeX-tree-roots’" error?

When I open a new tex file and hit C-c C-e <RET> to create document environment, the message buffer shows TeX-search-files-by-type: No TeX trees available; configure ‘TeX-tree-roots’. It will ...
0
votes
0answers
23 views

How to highlight certain symbols only inside math environment?

I'd like to have certain math symbols highlighted. I checked AUCTeX manual but there does not seem to be a built-in way to do that. They are not folded forms or anything, but the real glyphs, which I ...
0
votes
1answer
48 views

Org mode: Enable line numbers only in source code blocks

Is there a way to enable line numbers only for the source code blocks between #+BEGIN_SRC and #+END_SRC?

15 30 50 per page