Questions tagged [variables]
for variables in Emacs Lisp, which are symbols with values. The symbol’s name is also called the variable name. Most variable names, by convention, consist of lowercase, ordinary words separated by hyphens.
226 questions
0
votes
1
answer
45
views
Error due to variable tool-bar-map has not been assigned a value
When trying to modify a face through M-x customize-face, I got this error Symbol’s value as variable is void: tool-bar-map and the buffer shows nothing. I retried with all the contents of my .emacs ...
0
votes
0
answers
33
views
Spacemacs - Setting a variable only works after refresh
Every time I start up spacemacs, some variables are not defined. I get:
"Symbols function definition is void: nil"
However, when I refresh the configuration (SPC f e R), everything works ...
3
votes
0
answers
36
views
Project variable, function, macro checker
Is there an Emacs tool that show the dependencies for every file from a project?
I have undeclared errors at an Emacs project. If the variable or the function/macro into file is not declare yet, Emacs ...
0
votes
1
answer
119
views
Specify a key-binding using :bind in use-package with a variable passed in from ORG table
I'm attempting to centralize my key-binds in my org-literate Emacs config, that expands out to a series of use-package declarations. The issue I'm having is with the passing of keys as variables into ...
0
votes
3
answers
108
views
Declare function argument as being a function, not a variable
Consider the following code
(defun somefunc (text)
(message "hello, somefunc called with %s" text) )
(defun func-caller (func)
(func "some string") )
(func-caller 'somefunc)
...
0
votes
0
answers
26
views
Why is "display-buffer-reuse-window" producing an error?
Version: GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43,
cairo version 1.18.0)
I have an emacs configuration file which has followed me around through numerous different versions. ...
1
vote
0
answers
24
views
How to pass a variable behind a quoted statement? [duplicate]
I have this code:
(defun my-test (type)
(org-roam-ql-nodes-files '(and (properties "TYPE" (format "%s" type)))))
(my-test "wiki")
It throws a type error ...
0
votes
2
answers
96
views
use-package :bind loads package when passed symbol but not variable
I'm using the built in use-package macro of GNU Emacs 29.4.
When I do
(use-package magit
:bind ("C-x g" . magit))
magit does not get loaded on emacs startup, as expected. But when I use ...
0
votes
0
answers
38
views
Variable value changes when accessed (edebug "steps" twice on same variable)
As an aid, let me show you a video: https://streamable.com/c2bnko, though it's not needed to follow this question.
I'm going to edebug org-id-alist-to-hash (0:13 in video). First I verify that the ...
0
votes
1
answer
60
views
Variable for file name
How can I tell emacs/e-lisp to check if a user defined variable is a full path to a file or just a folder name? Currently, for one particular mode, user can just define variable for a sqlite database ...
0
votes
1
answer
114
views
How can I get which packages define certain variables?
I'm getting back in to emacs after a few years away, and my old init.el is throwing up warnings like this:
⛔ Warning (comp): init.el:114:7: Warning: assignment to free variable ‘c-basic-offset’
⛔ ...
0
votes
0
answers
59
views
How can I load a specific language server for a particular file extension?
I'm using emacs29 on linux.
At present, if I load a file with the extension '.tsx', and then do 'M-x lsp-mode' I get an error: 'Symbol’s value as variable is void: lsp-ada-project-file'
I assume that ...
0
votes
1
answer
135
views
Can cape be disabled on a mode basis?
I love using cape in text mode, but I cannot figure out how to stop it from activating in programming modes. Is it possible to either only enable it in certain modes or to disable it in specific modes?...
3
votes
1
answer
91
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 ...
3
votes
1
answer
149
views
Using make-symbol, boundp and symbol-value to reference a variable whose name is made from a string
When I run the following three lines with eval-region
(defcustom custom-var "some-custom-value" "for testing only")
(setq indirectRef (make-symbol "custom-var"))
(message ...