All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

Conditionally evaluate scattered source code blocks in org mode

I have an org document with various source code blocks. Some of blocks should be evaluated conditionally on org-babel-execute-buffer; however, these blocks are scattered throughout the document, which ...
kozina-adjacent's user avatar
0 votes
0 answers
19 views

flycheck causing stuttering while typing

I'm getting some performance issues where when I have flycheck-mode enabled in tex-mode/auctex, typing simple prose occasionally stutters for half a second. This is resolved by disabling flycheck-...
fp.monkey's user avatar
  • 101
0 votes
0 answers
15 views

Drag and drop images in org file. NON admin account, windows 10, emacs in user directory

I am new to emacs. Emacs setup: windows 10, no admin rights, emacs unpacked in user directory and works fine for simple org documents - compiling using pandoc and references work fine with org cite. I ...
Vivek Sharma's user avatar
2 votes
1 answer
98 views

How to see face value by name?

I found that while debugging faces it's often useful to see whether the face even exists and if it does then what value it has. I know there's a list-faces-display to list all defined faces, but it's ...
Hi-Angel's user avatar
  • 858
2 votes
2 answers
61 views

org table: Easier formula syntax for multiple if-conditions?

Suppose a column in an org table needs to be filled with strings, depending on the numerical values of another column. Let's say "a" if the number is less than 2, and "b" otherwise....
pglpm's user avatar
  • 325
0 votes
0 answers
17 views

Is it possible to make an index when *publishing* from orgmode to latex PDF?

I try to make sense of how index creation works in orgmode (or from orgmode), specifically with multiple files in the project. I'd like to know how to make an index for the latex-to-pdf process, but ...
yury10578's user avatar
  • 141
1 vote
0 answers
16 views

Does anyone know if the :bind feature of defhydra works?

The home page of the Emacs hydra package https://github.com/abo-abo/hydra indicates that there's a :bind key for the defhydra macro. However, it's undocumented how it works. The only statement about ...
Addlai's user avatar
  • 131
0 votes
0 answers
15 views

org-publish how to add relative path to css file

I would like to add same css file to published html files. But my posts are in nested directories like below: ├── posts │    ├── 01-post.org │     └── other-posts       └── 02-post.org So ...
slk500's user avatar
  • 473
1 vote
1 answer
52 views

org mode radio table from manual doesn't work

I took the radio table example from the manual. Put it in an org file and pressed C-c C-c inside the table. I get the message C-c C-c can do nothing useful here What am I doing wrong? Example: % BEGIN ...
Rusi's user avatar
  • 345
1 vote
0 answers
33 views

In Emacs lsp-mode, is there a way to modify function signature?

In lsp-mode (or any other Emacs cases), I can use lsp-rename to rename a var/id, all references being updated automatically. Now I want to modify a function's signature, e.g. adding an argument, in a ...
WIZARDELF's user avatar
  • 201
0 votes
0 answers
70 views

consult-ripgrep - Error running timer: (file-missing "Searching for program" "No such file or directory" "rg")

Emacs 29.3 GNU (Flatpak) - installed by Software Manager Linux Mint 21.3 Install ripgrep: apt install ripgrep In init.el (use-package rg :ensure t :ensure-system-package rg) (use-package consult ...
a_subscriber's user avatar
  • 4,174
0 votes
0 answers
35 views

Change the default size of Emacs frames in Emacs Snap

I am running Emacs 29.3 in Fedora (installed via Snap). There are two icons by default: Emacs and Emacs(Client). When I try to open an Emacs(Client) windows, I get tiny small frames to the left of the ...
Edman's user avatar
  • 1,229
0 votes
1 answer
20 views

help: yasnippets won't load table

I'm having trouble with yasnippets. I install it but it won't work -- it does not expand anything. When I do yas-describe-table-by-namehash it lists "Snippet table LaTex-mode" "Snippet ...
kreitz's user avatar
  • 3
0 votes
0 answers
27 views

Clang-format is formatting too much

I just installed clang-format and set "Clang format style" to "LLVM". Highlighting a line and running M-x clang-format-region changes the formatting of the whole file. Also it ...
Eric Auld's user avatar
  • 103
0 votes
1 answer
28 views

columns by default in agenda view (what's wrong with my elisp?)

Admittedly my elisp is pretty bad, but for the life of me I can't understand what's going on here. AFAIK the first example below should display the agenda view in column view by default, but it doesn'...
cochrane12's user avatar
2 votes
1 answer
33 views

Making \includegraphics interact with \graphicspath in AUCTeX

Can I make \includegraphics aware of \graphicspath arguments when prompted for a graphics file? I have \usepackage{graphicx} \graphicspath{{./images}} in the preamble. With C-c C-m \includegraphics I ...
makalakat's user avatar
0 votes
2 answers
39 views

Unable to override c-offsets-alist in dir-locals.el

I have Emacs 27.1 on Ubuntu 22.04 and I'm trying to modify c-offsets-alist for this particular project with C and C++ source files. I have a c-style and a c-mode-common-hook in my .emacs: (defconst my-...
fencekicker's user avatar
1 vote
1 answer
51 views

How can I call a self defined function on Emacs startup?

I'm very new to Emacs and i would like to know why the following doesn't work for me: When I run Emacs, I would like to have my ~/ buffer displayed. I previously defined my own function to get back to ...
Davide Farassino's user avatar
1 vote
1 answer
63 views

Inconsistent y-or-n-p prompt behavior in Emacs Lisp

I have the following Emacs Lisp code: (progn (y-or-n-p "Test: ") (let ((search-spaces-regexp "\\(?:\n?[\s\t]+\\|\n\\)?")) (y-or-n-p "Test: "))) The first prompt ...
Gabriele's user avatar
  • 1,660
0 votes
0 answers
28 views

On startup `run-hooks: Cannot open load file: No such file or directory, emacs` for `emacs` package itself

Due to an misformed Makefile I deleted my ~/.config dir which contained all my Emacs setting under .config/emacs following XDG-sheme. Luckily I had a backup of all my dotfiles so no big problem -- I ...
lukeflo's user avatar
  • 195
0 votes
1 answer
65 views

Setting up KOMA-Script

I'd like to write a simple cover letter, using org-mode. Several examples I have come across draw on KOMA-Script (e.g.: on Rida Ayed's webpage). Running the sample script from Rida Ayed's page throws ...
Tiberius's user avatar
  • 113
0 votes
0 answers
32 views

How do I hardcode `TERM` for CLI emacs in elisp?

The TERM variable is not set correctly for my emacs. I like to override it using elisp. I am currently using: (setenv "TERM" "xterm-kitty") But this does not seem to work. PS: I'm ...
HappyFace's user avatar
  • 860
0 votes
0 answers
36 views

Change escape characters of substitutions in dired-do-shell-command

I've recently found nushell and made it my default shell, and in many ways it's great, but the syntax does differ a bit from bash, and that causes substitutions to be wrong when I use dired-do-shell-...
Alexander Praehauser's user avatar
0 votes
1 answer
49 views

Why is minor mode map not overriding major mode?

If I have both a major and minor mode in effect, I expect that the MINOR keymap will override. But that's not what happens! The major map has (among other things) a weird binding for SPC, and it does ...
user1698584's user avatar
0 votes
0 answers
17 views

How to stop yasnippet from triggering multiple times on same instance

I am having trouble with yasnippet triggering multiple times. If I type $times$ it will trigger and change to $\times$ but then everytime I move my cursor through $\times$ it will trigger again. So if ...
kreitz's user avatar
  • 3
0 votes
0 answers
17 views

Can Olivetti mode do smart line breaks?

I am using olivetti in conjunction with modes that have some kind of markup. In particular, Org mode. (But this could apply to LaTex, for example.) A markup, such as the inline "code" ...
user1698584's user avatar
0 votes
0 answers
50 views

How to programatically get a list of all packages that can be upgraded?

I'd like to write a function that returns a list of packages that can be upgraded. I know I can use list-package and then type U to search and list all packages that can be upgraded. But this is an ...
PRouleau's user avatar
  • 831
2 votes
1 answer
68 views

Prevent overly window (mis-)management

I have EMACS window normally split in two panes (C-x 3), left is for editing, right is for command line for example. I edit .po file in the left pane: I select an entry, hit ENTER and subedit buffer ...
aikipooh's user avatar
  • 131
0 votes
0 answers
33 views

Different styles of comments in emacs mode

I'm working on the integrating Proof General(PG) into a proof assistant, but I have difficulty in configuration of comments. I have different settings for single-line comments and multi-line comments ...
phdstudent's user avatar
0 votes
1 answer
18 views

Projectile: Project specific commands/configurations

Is there a feature in projectile that allows me to run some configurations for a specific project? For instance: I want to make it so that in project X, Y keybinding is configured. And when I close ...
Peter Petigru's user avatar
0 votes
0 answers
25 views

How can I gray out scheduled todos in org-agenda?

I have this function, which skips todos in org-agenda (defun my/org-skip-function (part) "Partitions things to decide if they should go into the agenda '(agenda future-scheduled done)" (...
Jason Hunter's user avatar
0 votes
1 answer
36 views

org mode structure template for showing org syntax?

I have an org mode document, and I'd like to have a block showing some org syntax that isn't interpreted as part of the overall document. I want to do something like: ** enclosing document heading ...
Dan Drake's user avatar
  • 655
0 votes
0 answers
18 views

org-mode: How do I get a property from the children in the current subtree?

I want to implement a backlink search. I want to find the nearest :ID: property to do so. I need to find this property from the children of the current subtree, so kind of the inverse of property ...
HappyFace's user avatar
  • 860
0 votes
0 answers
38 views

How can I check my .emacs file for legacy functions?

Recently I did (describe-function 'global-unset-key) and saw, This is a legacy function; see ... for the recommended function to use instead. Holy smokes, that's just the tip of the iceberg. My ....
Dan Jacobson's user avatar
2 votes
1 answer
38 views

Make ‘jump-to-register’ reuse an existing window

For example, if I save the current position in a register from the left window here, and then call jump-to-register from the right window, Emacs switches the right window to the buffer where I saved ...
Arch Stanton's user avatar
  • 1,707
0 votes
1 answer
73 views

emacs initialisation files

I'm aware of being able to start emacs with a specific init.el, but I'm trying find a way of having my normal emacs configuration which is in ~/.emacs.d separate from my doom configuration which is in ...
balanga's user avatar
  • 135
0 votes
1 answer
51 views

How to use IBM's CUA for mark copy delete paste in emacs

How do I configure emacs to use IBM CUA keys for mark copy delete and paste? IBM CUA keys use C-Ins and S-Ins for copy and paste. I find M-w and C-y difficult to use and would prefer to use what I'm ...
balanga's user avatar
  • 135
0 votes
1 answer
51 views

apply: Cannot open load file: No such file or directory, track-changes

Since I upgraded my emacs packages -- and in the process migrated to emacs 29.3 -- I've been seeing this error message: apply: Cannot open load file: No such file or directory, track-changes or ...
dmvianna's user avatar
  • 392
0 votes
0 answers
11 views

Avy snipe-repeated command execution. Replacement only of the current candidate or jump further

Good day, I am using doom-emacs on Mac OS. I want to implement a new feature, using avy commands, but without the letter selection, but an immediate jump. Much like evil snipe command. Instead of ...
Rareform's user avatar
  • 231
0 votes
0 answers
33 views

How to delete a git branch locally and remotely in version-control?

In the manual pages about version control I find the instructions on how to create and switch to branches, also for Git repositories. But I can't find information on how to delete a branch – both ...
pglpm's user avatar
  • 325
0 votes
1 answer
58 views

Reuse property value

Headings in my org file have a property 'TITLE' and another 'REFERENCE'. There is also a heading that provides 'Additional Texts'. There is a heading * Output section. The 'Output section' will be ...
Deshmukh's user avatar
0 votes
1 answer
23 views

find-file backslash causes searching

Using emacs on Windows. When I use find-file, if I type in a new path, e.g. w:\, then I get a message that says searching for 'w:\'... and a long pause followed by no match. When I type in w:/ it ...
NetMage's user avatar
  • 121
1 vote
2 answers
81 views

Getting the source file line number of the currently executing init file expression (formerly: Malformed macro)

I wrote this macro for my .emacs file to trace its progress during loading: (defmacro checkpoint () `(message "Reached line %i" (1+ `,(current-line)))) So I placed (checkpoint) ...
William R. Greene -- 'Bill''s user avatar
0 votes
0 answers
33 views

Is it possible in Org-mode to disable the jump to tags upon entering a space at the end of a heading?

In Org-mode, I have the tags right next to the heading text, separated by a single space (i.e. org-tags-column = 0). Now, if I have a heading with existing tags, and I place the cursor at the end of ...
aaa's user avatar
  • 486
0 votes
0 answers
39 views

Changing the environment used for external commands

In a shell, I can conveniently change the environment using Lmod, for example: module load nvhpc to load some particular package with compilers. Is there some way to change the environment from ...
Jannis Teunissen's user avatar
0 votes
1 answer
22 views

How to change java file behaviour to use 2 character indentation

If I create a C file I get 2 character indentation which is what I want. However, if I create a java file, eg Hello.java then I am getting 4 character indentation. And I can't work out why. My ....
arcomber's user avatar
  • 219
1 vote
1 answer
31 views

how to include :: in the text of an org mode list without it generating a description list?

I am trying to use org mode to make notes about my programs. The formatting for some of the items in my lists were pushed to the left. I realized that my code includes double colons :: and org is ...
user44126's user avatar
0 votes
0 answers
26 views

Temporary change to grep-find-command à la (let ((grep-find-command ...)) ...)

I'm trying to define a function that runs grep-find using a temporary value for grep-find-command. The following almost works: ;; "fe" is the "iron searcher" that I use internally....
Darren Embry's user avatar
0 votes
1 answer
24 views

how to skip numbering but only for first heading in org-export to html

I'm trying to create a blog. And I want to skip numbering but only for the first heading. Which will be the title of the post. in org: * Toplevel ** Head_1 content 1 ** Head_2 content 2 to be ...
slk500's user avatar
  • 473
1 vote
1 answer
122 views

How can I control the indentation inserted by Emacs because I used the tab key?

This is probably a really basic question, but something I hadn't thought about before: When editing code, how to indent? I think the way to go is simply use the tab key and then, once indented once, ...
arcomber's user avatar
  • 219

15 30 50 per page