Skip to main content
3 votes
Accepted

How to load font for emacs on Arch Linux?

Assuming the font is installed correctly, you can just pass in the name of the font to set-frame-font. (set-frame-font "Iosevka Fixed") ;; You can also give it a size. (set-frame-font "...
g-gundam's user avatar
  • 1,281
3 votes
Accepted

Seq-Keep is void when installing magit through use-package

You're using Emacs 28.2. It looks like function seq-keep was added in Emacs 29. That means that it's undefined (its definition is void) in 28.2. It's not clear to me from your post that it's Magit ...
Drew's user avatar
  • 78k
3 votes
Accepted

require can't find file that do exist

The error is: (file-missing "Cannot open load file" "No such file or directory" "f") For the backtrace: require(f) eval-buffer(#<buffer *load*-752679> nil &...
phils's user avatar
  • 51.6k
2 votes

Unclear wrong argument

When describing the variable input-method-function with C-h v aka M-x describe-variable, the *Help* buffer contains the following preamble: input-method-function is a variable defined in ‘C source ...
lawlist's user avatar
  • 19.2k
2 votes

Tools for locating and debugging errors

You should be able to click on the ... to find the complete file name where the error occurred. Then if you scroll all the way to the right in the backtrace you will see that the error occurred at ...
NickD's user avatar
  • 30.8k
2 votes

when I open file in emacs I get lots of strange errors

What you're seeing is a backtrace, showing you the function calling chain -- most recent at the top -- that led to the (single) error that caused the debugger to be invoked. This helps you isolate the ...
Phil Hudson's user avatar
  • 1,786
2 votes
Accepted

Translate use-package syntax

The main use of use-package is to delay loading (i.e. require) of the package until it is needed. The :command syntax is to provide a list of functions to autoload, so that if they are called, the ...
mmmmmm's user avatar
  • 525
2 votes
Accepted

Can't access a global variable inside a function in elisp?

The error comes from these lines: (set lsp-ui-doc-toggle 2) (set lsp-ui-doc-toggle 1) You want setq, not set. Function set expects a symbol, and it evaluates its arguments. So it evaluates ...
Drew's user avatar
  • 78k
2 votes

Undefined-function error about function called by my function

Put (require 'THE-LIBRARY) inside your definition of safe-mail-send-and-exit, at the beginning (just after (interactive), where THE-LIBRARY is the library that defines function mail-send-and-exit. (...
Drew's user avatar
  • 78k
2 votes
Accepted

use-package with builtin mode, such as display-time-mode

The problem here is that display-time-mode is not a package; it's a minor mode defined in the built-in package time (time.el). The first argument to use-package must be a package. [More accurately ...
D. Gillis's user avatar
  • 496
2 votes
Accepted

nov-mode returns binary buffer and "File mode specification error: (error Invalid version syntax: ‘’ (must start with a number))"

The reason this happens is because there is Org integration in nov.el that tries to use the recommended APIs and uses the value of org-version to figure that out. Granted, it's more robust to instead ...
wasamasa's user avatar
  • 22.2k
2 votes
Accepted

Use-package :bind-keymap with car as a form

The behavior you are seeing is because use-package is a macro rather than a function. As noted in the manual, macros "operate on the unevaluated expressions for the arguments". You can see ...
glucas's user avatar
  • 20.6k
1 vote

Symbol’s function definition is void: make-closure

You need to recompile the .elc files. (byte-recompile-directory package-user-dir nil 'force) I had to restart and compile twice. found here
Flinner's user avatar
  • 31
1 vote

when I open file in emacs I get lots of strange errors

Solution 1, ;; open files faster but you can't check if file is version ;; controlled. other VCS functionality still works. (remove-hook 'find-file-hook 'vc-find-file-hook) Solution 2, Run apt ...
chen bin's user avatar
  • 4,877
1 vote

"Error (frameset): Wrong type argument: number-or-marker-p, nil" How to debug it?

I found the answer at https://stackoverflow.com/questions/18612742/emacs-desktop-save-mode-error#comment47963002_26546872 (setq desktop-restore-forces-onscreen nil)
Nils Landt's user avatar
1 vote
Accepted

What am I supposed to do about the error “Invalid search bound (wrong side of point)” in my code calling re-search-forward?

Should I use a marker manually Yes, if you are repeatedly searching and replacing within the same initial beg end region, you need to use a marker to ensure that the bounds remain sane from one ...
phils's user avatar
  • 51.6k
1 vote

Hook resulting in a Wrong type argument error?

After reading elfeed-summary.el a few more times, I finally found a solution: (defun news () (interactive) (elfeed-summary) (elfeed-summary-update) (setq-local elfeed-summary--only-unread ...
Carapuce's user avatar
1 vote
Accepted

cannot `lossage-size` a large number

If Emacs crashes then there's a bug in Emacs (in its C code). Do M-x report-emacs-bug immediately, in particular providing a recipe that starts with emacs -Q (no init file). I tried emacs -Q followed ...
Drew's user avatar
  • 78k
1 vote

eldoc error: (void-function embark-eldoc-first-target)

Please tell me if there is anything wrong with that. But you can definitely avoid the error by placing (add-hook 'eldoc-documentation-functions #'embark-eldoc-first-target) behind the config: ...
Boole's user avatar
  • 11
1 vote

Which-key like in doom emacs: Symbol's value as variable is void: some-map

;; shows shortcuts, when clicking C-x (add-to-list 'load-path "/Users/dave/.emacs.d/elpa/which-key-20220811.1616/which-key.el") (require 'which-key) (which-key-mode) (setq some-map (make-...
David's user avatar
  • 299
1 vote
Accepted

Error when using helm setup with use-package

The :config clause has too many parens and should read: (use-package helm :bind (("M-x" . helm-M-x) ("C-x b" . helm-mini) ("C-x C-f" . helm-find-files)...
Fran Burstall's user avatar
1 vote

Why can't counsel-rg index an expression previously found?

Please try this: use [ ] for a single space rg: "Book[ ]JE"
JimMoen's user avatar
  • 11
1 vote
Accepted

Why can't counsel-rg index an expression previously found?

This problem is now solved with the following addition to my init file: (setq ivy-re-builders-alist '((counsel-rg . ivy--regex-plus) (t . ivy-prescient-re-builder))) ...
Pedro Delfino's user avatar
1 vote

Why can't counsel-rg index an expression previously found?

If you look in the man page for rg, you will find that the exit status will be 2 when there was an error. This can be a syntax error in your search regex, or an error while reading some file (a disk ...
db48x's user avatar
  • 18.3k
1 vote

How to enable terminal beeping?

pytest tells the terminal to beep by printing a BEL character, ascii 0x07. Emacs term looks for the same character and calls ding to ring the bell. The way ding works is by looking at the variable ...
db48x's user avatar
  • 18.3k
1 vote

How does one fix the Warning (initialization): An error occurred while loading error?

It means that something in your init file invoked a function that expected 3 or 4 arguments, but it was passed only 2 args. To find the culprit, bisect your init file: comment out 1/2, then 3/4, 7/8, ...
Drew's user avatar
  • 78k
1 vote

Loading charset map: No such file or directory, JISX0208

This problem recently bit me too. What likely happens it that while Emacs is running, Ubuntu has upgraded Emacs. Thus, all files in the directory /usr/share/emacs/Y.X (including etc/charsets/JISX0208....
Gaslight Deceive Subvert's user avatar
1 vote

Tools for locating and debugging errors

Have tried to locate the extra right parenthesis in the code, but been unsuccessful. M-x check-parens will find unbalanced parens in the current buffer. You should also know how to navigate using ...
phils's user avatar
  • 51.6k
1 vote

Error /bin/bash: line 1: nil: command not found

Thanks to @phils who helped to come up with this piece of code that works: (defcustom python-autopep8-path (or (executable-find "autopep8") "autopep8") "autopep8 executable ...
Schach21's user avatar
1 vote
Accepted

Emacs 27: How to jump to backward found word when switched into reverse incremental search?

It's always more informative to set debug-on-error to t and repro the error, then post the backtrace (at least the beginning). That will show the complete error message, which tells what function ...
Drew's user avatar
  • 78k

Only top scored, non community-wiki answers of a minimum length are eligible