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.
225 questions
0 votes
0 answers
26 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 ...
0 votes
1 answer
109 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
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. ...
0 votes
2 answers
93 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
1 answer
57 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
0 answers
57 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 ...
3 votes
1 answer
90 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 ...
1 vote
1 answer
64 views
Format isearch-filter-predicate as describe-variable does
If I modify the isearch-filter-predicate variable with add-function and I do: (message "%s" isearch-filter-predicate) I get: "#[128 \304\300"\205\0\304\301"\207 [skip-...