Questions tagged [custom]
Use for questions about the built-in GUI customization features
26 questions
1
vote
1
answer
60
views
Can I have system-local and global customizations?
At the beginning of the custom-set-variables-list, there is a comment:
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file ...
0
votes
1
answer
41
views
Using Markdown in pdf-tools Annotations
I would like to write annotations in pdf-tools mode with markdown.
In the "Easy Customization Interface" within the "pdf-tools / pdf annot" group I found the customizable variable ...
0
votes
1
answer
80
views
Extract only package-selected-packages from custom-file
In the config, the custom.el file better be evaluated - in my opinion - at the end of the init process, as it allows its content (made by the end user and more prone to frequent changes) to override ...
0
votes
1
answer
322
views
Emacs 'package-selected-packages' is not get saved in a customization file
I have noticed recently, the Emacs always shows a list of "unneeded" packages, which could be "auto-removed". The packages it suggests as not needed are those that were installed ...
0
votes
1
answer
1k
views
`defface` and `custom-set-faces`
Noob here. In my .emacs.d/custom.el I have stuff like:
(defface delim-mismatch `((t (:foreground "red"))))
(custom-set-faces
'(show-paren-mismatch delim-mismatch)
...
)
But it throws ...
0
votes
0
answers
22
views
custom-set-faces common color variables [duplicate]
I want to fine-tune my syntax highlighting, and have created a separate colors.el file that gets loaded around the beginning of init.el. I often use the same color for multiple entries, and it gets ...
0
votes
1
answer
526
views
How to custom-set-faces with one of the named faces?
I can do this:
(custom-set-faces
'(j-verb-face ((t (:foreground "Red")))))
But what I want is to set the color to one that is theme-dependent.
I tried the following, which causes a "...
1
vote
1
answer
137
views
How to check if a customize group exists in Emacs Lisp code?
How can I programmatically check if a customize group exists?
Interactively I can use M-x customize-group and use completion to see if a specific group exists or not. But that's not what I need.
If I ...
1
vote
1
answer
49
views
Replace a filename in init.el using sed from bash script
So I have different customized themes. Different customized themes are written to a separate custom .el files and get called in the main init.el file. For example:
(setq custom-file "~/.emacs.d/...
3
votes
2
answers
143
views
A custom type specification like “repeat,” but when there’s only one item, it’s inline
So, I’m trying to add Customize support to packages that use a lot of plists, and where the value of pretty much any option can be either a single item or a list. I could have every single plist ...
1
vote
0
answers
68
views
Massively long text boxes and yasnippet highlighting
Why are my text boxes and yasnippet field highlights so massively long?
Is there a way to change this behavior?
If so, what are the necessary steps that need to be taken to solve this issue?
The ...
1
vote
1
answer
114
views
macro takes multiple pairs of arguments
I found this snippet of code from oremacs
(defmacro csetq (variable value)
`(funcall (or (get ',variable 'custom-set) 'set-default) ',variable ,value))
I would like to expand this macro so that is ...
1
vote
1
answer
434
views
What happens when there is more than one custom-set-variables?
a quote from my init.el:
;; custom-set-variables was added by Custom.
...
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
What exactly ...
1
vote
1
answer
108
views
Save filesets-data in file which is not the custom-file or other emacs config file
Background
I store Emacs my configuration in a .emacs and separate custom file. I would like to store both in a public repository like Github. I also use filesets which saves filenames & file ...
7
votes
1
answer
2k
views
Add to a list that defcustom has not yet defined
We can avoid adding duplicate elements to a list variable by using add-to-list.
When setting a customizable variable (i.e. one that is or will be defined by defcustom) from our init file, we're ...