All Questions

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

Pandoc correctly generates LaTeX but no HTML5 output from an Org-mode file

I cannot get an HTML5 output from my Org-mode file, while PDF/LaTeX output is fine. This is a fragment of my Org-mode file: #+LaTeX_HEADER: \author{Name Surname} #+HTML_DOCTYPE: html5 All I can get ...
  • 103
0 votes
0 answers
20 views

Examine macro arguments

Is it possible in an Elisp macro to examine the structure of its arguments? Say for instance I'd like to re-implement the let binding: (defmacro my/let (bindings expression) (...)) To do this it ...
  • 101
0 votes
0 answers
7 views

dap-mode: Initialize request failed: "program" property is required for launch

I am trying to use LLDB to debug my rust code. To edit the code, I use rustic-mode with lsp-mode, and to perform debugging I am trying to use dap-mode. Currently, this is how I initialize dap-mode in ...
  • 1
3 votes
1 answer
55 views

why “`(a \, b)” equals to “`(a . ,b)”

I found this when playing with *ielm*: ELISP> `(emacs-version \, emacs-version) (emacs-version . "28.2") I have never heard of this usage of \,, is it a feature or bug? OP reported this ...
  • 307
0 votes
2 answers
17 views

In magit, I want to (easily) see how a piece of code changes over time with commits

I'm curious if there's an easy way in Magit to see how a piece of code changes over time, i.e., with each commit. I'd like to have one window open in Emacs, focusing on the code/function I want to see ...
  • 103
0 votes
1 answer
12 views

How to hide TODOs of future dates in org-agenda weekly view?

I like it when I enter the org-agenda weekly view and see the hourly view of my day with my recurring tasks that have specific time period of doing. But since these tasks are recurring , I see them ...
-1 votes
1 answer
12 views

interactively prompt for a list (or regex) rather than just a single item

I have a function to kill buffers matching a given regex: ;; Like kill-matching-buffers, but doesn't prompt every time. ;; TODO: get this to use vertico (defun kill-matching-buffers-just-do-it () &...
0 votes
1 answer
23 views

How to change agenda buffer font size?

Each time I load the agenda buffer, I have to do C-x C-+++ for the content to be a readable size. How could I modify init so I don't have to do C-x C-+++ anymore?
1 vote
1 answer
42 views

Why use PLIST to store symbol’s properties instead of ALIST?

In my opinion, alist and plist are very similar data structures. An alist with well-defined functions can implement most features of plist (e.g. “distinct property name”, and if so, they will have ...
  • 307
0 votes
1 answer
16 views

Change cursor blinking status upon state change of evil-mode

I'm using evil-mode. My goal is to have a blinking cursor upon entering evil-insert-state, and to have a non-blinking cursor in evil-normal-state. I tried the following but it doesn't work: (add-...
1 vote
0 answers
11 views

Incompatible faces error

I'm trying to set my ediff faces to reuse some of the magit faces. The ediff colors are not very good in the dark mode I'm using. But I'm getting an error about compatibility. I found this error ...
  • 189
0 votes
1 answer
15 views

Org column with time estimate adjusted by clocked time: how to sum?

I'm trying to track how much time I need for a project. Individual tasks all have a time estimate (for example below, one hour each), so my initial estimate was 6 hours for the whole project. But once ...
  • 37
1 vote
1 answer
46 views

Toggle between two themes using one key binding

When I press the F9 key I want to call the ef-themes-select function and when I press F9 a second time to call the modus-themes-select function. I want to toggle between them each time I press the F9 ...
  • 135
1 vote
1 answer
34 views

Does `:` as the first character of a symbol name have a special meaning?

If I run (plist-get '(A 4 B 3) 'B) I get 3 as expected. I understand that I must quote B, otherwise (plist-get '(A 4 B 3) B) causes an error: elisp--eval-last-sexp: Symbol’s value as variable ...
0 votes
0 answers
10 views

Can't change emacs console/terminal theme (emacs -nw)

I'm using base16-theme package to load my GUI theme and it works fine. However my console theme is completely random (launched with emacs -nw). It doesn't match (not even close) with the GUI theme and ...
0 votes
0 answers
8 views

how to get correct indentation in haskell-mode in spacemacs

When in haskell mode indentation is not working quite how I expect it to. When pressing enter in an "else" statement the cursor goes to the beginning of the line instead of the correct one ...
0 votes
1 answer
21 views

searching for <beginningOfLine><Comma>

how can I (interactive) search for <beginningOfLine>, I tried ^ which means beginning of line in perl Also \A which does signified the same in ruby. C-s ^, C-s \A, I also tried search-forward-...
0 votes
1 answer
10 views

debugging helm-bibtex cannot open PDF with the default emacs viewer

I cannot get helm-bibtex open pdfs from the helm-bibtex buffer with all bibliography nicely listed in an organized view showing which reference has a pdf or not. I usually get this view by M-x helm-...
  • 1,749
-1 votes
1 answer
26 views

Emacs application doesn't play well with emacs daemon

Using the zsh function emacs () { visible_frames () { emacsclient -a "" -e '(length (visible-frame-list))' } change_focus () { emacsclient -n -e "(select-frame-set-input-...
  • 205
0 votes
0 answers
10 views

How can I display the text from the compile buffer in the echo area on next-error?

I'm looking for a way to (almost) completely hide the compilation buffer. Navigation on next-error works fine and does not reveal the buffer if I have it displayed in another frame. But I'd also like ...
  • 125
0 votes
1 answer
21 views

Make Emacs 28 tab-line-tab-modified styling sensitive to whether tab is active or not

Emacs 28 added the tab-line-tab-modified face to enable (for example) bolding the text of any tab corresponding to a modified buffer. I style my active tab differently from inactive tabs; my face ...
  • 205
0 votes
1 answer
31 views

How do I compare empty string with ""?

I want to understand why (when (string= issue "") (error "Issue number missing")) doesn't throw an error when issue is empty, but (when (= (length issue) 0) (error "...
0 votes
0 answers
8 views

Emacs 28.2 does not open from finder/dock on OS X Monterey

I downloaded Emacs 28.2 (released 2022-09-12) for OS X from here. When I try to open it from Spotlight search or the dock, it sometimes bounces, sometimes hangs, but never opens. I can open it from ...
  • 111
0 votes
1 answer
17 views

Org-mode: Selectively Stripping Sections/Subtrees Depending on Backend

Note: this is building on the solutions to putting images side-by-side in HTML and LaTeX: orgmode image export side by side to both latex and html Given the following org-mode document: #+TITLE: Side-...
  • 1,187
0 votes
2 answers
35 views

Org-mode: Delete Sections/Subtrees with Elisp

Using some org-mode utility functions, it is possible to pretty easily iterate over all headlines in an org-mode buffer, such as this one that deletes all headlines. (org-map-entries (lambda () (...
  • 1,187
1 vote
0 answers
12 views

How to add a secondary flycheck checker to lsp-ui

Because the lsp package sets the default checker to lsp (chaining not supported) I am using this WA to chain another checker to lsp: (defvar-local my/flycheck-local-cache nil) (defun my/flycheck-...
  • 143
0 votes
0 answers
17 views

w3m Always Display Link Numbers

I can turn on link numbering with L f, but how can I keep link numbering always on?;) I'm not sure if emacs-w3m picks up config from ~/.w3m/w3m, cause I do find a "display_link_number 1" ...
1 vote
1 answer
23 views

How to check whether input focus is in the minibuffer?

In order to adjust the behavior of my custom keyboard shortcuts I'd like to determine whether or not the current input focus is within the minibuffer. (The buffer seems to be called something like *...
  • 113
0 votes
0 answers
18 views

default menu-bar :enable functions -- what are they for?

In the default Emacs menubar (menu-bar.el), a lot of menu items are defined the following way: [...] '(menu-item "Menu item" foo :enable (and (menu-bar-menu-frame-live-and-visible-p) ...
  • 207
0 votes
0 answers
22 views

custom-set-faces for tabline not working?

I have the following code in my customizations.el file (this is Aquamacs): (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ...
  • 205
0 votes
3 answers
51 views

Workflow: Add notes during a meeting to an org file

When preparing for a meeting or conversation I often take notes using org-mode in advance and write up some questions. During the meeting or conversation I want to take quick notes (answers and ...
  • 141
0 votes
0 answers
21 views

(Internal) Reference to a Source Block

Given the following example org-document: * For Loops This is a for loop in Python: #+name: lst:src-ref #+caption: This is an example for loop. #+begin_src python for i in range(0, 10): ...
  • 1,187
0 votes
0 answers
20 views

List all occurrences of a keyword with click

I would like to click on a keyword (def, class, variable, ...) with shift pressed and have the occurrences/origins listed. When clicked I would like to jump to that occurrence. I used to have it done ...
  • 165
1 vote
1 answer
21 views

Aggregating org files in a single buffer, optionally grouping by common headings. Which building blocks could be used in emacs?

If possible, what APIs or emacs features would be suitable to implement a "view" ("computed") buffer that would: allow aggregating content from multiple buffers in a single buffer ...
  • 111
0 votes
0 answers
10 views

Evil Mode: How to get 'q' to kill Occur buffer + window

I recently started using Doom Emacs. I'd like to use Occur mode more frequently (via occur, multi-occur, etc.), but every time I open an Occur mode buffer in a split window, the only way to kill the ...
  • 11
0 votes
1 answer
30 views

Magit `zz` (stash both) does not allow whitespace in minibuffer

Sometimes when using command zz (stash both), the minibuffer to enter a stash message does not allow me to enter whitespace (e.g. space chars). I typically resolve to use dashes or underscores or even ...
  • 208
0 votes
0 answers
20 views

How can I get the Msys2 CLI to recognise the emacs ctrl + h key chord?

OK, I hope this is in the right department because I think although this is a problem with using emacs it may be the console window settings causing the problem. In emacs in most console or GUI ...
2 votes
0 answers
21 views

Correct conversion of time strings containing PM

I have reached the outer edges of frustration on this one. I want to take a time stamp that is in the format: "Jan 20, 2023 7:09 PM" and get an output like: (0 9 19 20 1 2023 nil -1 nil) ...
0 votes
0 answers
14 views

Java-LSP freezes from Flymake error

I am very new to Java and have only been using an lsp for the past month or two. I have done some projects in Go, Python and Rust with lsp-mode and haven't had any problems. Now that I have been ...
0 votes
0 answers
15 views

Org mode session inferior process

In Python org mode source blocks, the company code completion works only if there is inferior buffer called *Python*. When I use file-wide session inferior buffer with a different name the ...
  • 678
1 vote
1 answer
21 views

How can I make a window always show the same file buffer?

How can I force Emacs to keep a certain file in a particular window? For example, if I am editing a LaTeX file and there is a compile error, I want to inspect the error in another window. I ...
0 votes
0 answers
21 views

eshell insert arguments from previous commands

I use M-. a lot to insert arguments of previous commands when using zsh/bash. Is there a built-in equivalent for eshell? I did a GH code search, and saw this was implemented by em-last and em-zle, ...
0 votes
1 answer
23 views

Is there a way to get a toggle-able dired window?

I'd like to have Dired pop up, either as a side window (like Treemacs) or just to switch to its buffer (in the main window) with a keystroke. I've already changed its behavior to reuse the same buffer ...
0 votes
2 answers
23 views

Fixing tables in orgtbl-mode

So I had a table that looked like this +---------------------------+------------------------------------------------+ | Version | Minimum OS Requirements | +---...
  • 207
0 votes
0 answers
19 views

How can I restore an org file from a backup?

I recently made the mistake of accidently deleting a portion of my home folder. I lost some org-documents for notes and things that I'd like to recover. Luckily, my .emacs.d directory and the backups ...
0 votes
0 answers
16 views

Make sexp-at-point ignore ";" in LaTeX mode

I have this LaTeX code: $K(U_1, V_1, x_1; t_2, x_2)$ I found that the string/expression (U_1, V_1, x_1; t_2, x_2) is not recognized as an s-expression by the command (sexp-at-point) (in latex-mode) ...
0 votes
0 answers
34 views

How to have `M-x man` immediately open manpages while still keeping all of its emacs-added formatting?

I don't like how M-x man takes a while to open the manpage, presumably because it is performing some formatting tasks. How can I solve this without losing the formatting? Perhaps there is some easy ...
  • 143
1 vote
1 answer
38 views

What is the replace regexp string for applying 3 digit grouping to any number?

the title gives it all away: I want this 9874599842006432.08 To become this 9,874,599,842,006,432.08 with 1 single replace regexp operation and flexible, so that the same string also would work on a ...
0 votes
0 answers
17 views

Is there a major mode for dbt

I'm trying to use dbt in emacs, and I'm hoping that there is a mode for this that will combine the jinja and sql parts in an intelligent way... I quick google search didn't find anything, so the ...
0 votes
1 answer
19 views

Call to `decoded-time-add` produces warning: obsolete timestamp with cdr 1

I have the following code: (decoded-time-add (make-decoded-time :day 1 :month 1 :year 2023) (make-decoded-time :year 1)) When I execute this the following warning gets put out: obsolete ...
  • 139

15 30 50 per page
1
2 3 4 5
500